termux-app
53 строки · 1.4 Кб
1apply plugin: 'com.android.library'
2apply plugin: 'maven-publish'
3
4android {
5compileSdkVersion project.properties.compileSdkVersion.toInteger()
6
7dependencies {
8implementation "androidx.annotation:annotation:1.3.0"
9api project(":terminal-emulator")
10}
11
12defaultConfig {
13minSdkVersion project.properties.minSdkVersion.toInteger()
14targetSdkVersion project.properties.targetSdkVersion.toInteger()
15testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
16}
17
18buildTypes {
19release {
20minifyEnabled false
21proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
22}
23}
24
25compileOptions {
26sourceCompatibility JavaVersion.VERSION_1_8
27targetCompatibility JavaVersion.VERSION_1_8
28}
29}
30
31dependencies {
32testImplementation "junit:junit:4.13.2"
33}
34
35task sourceJar(type: Jar) {
36from android.sourceSets.main.java.srcDirs
37classifier "sources"
38}
39
40afterEvaluate {
41publishing {
42publications {
43// Creates a Maven publication called "release".
44release(MavenPublication) {
45from components.release
46groupId = 'com.termux'
47artifactId = 'terminal-view'
48version = '0.118.0'
49artifact(sourceJar)
50}
51}
52}
53}
54