• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1plugins {
2    id 'com.android.library'
3    id 'maven-publish'
4}
5
6dependencies {
7    api(deps.errorprone, {
8        exclude group: 'org.checkerframework', module: 'dataflow-errorprone'
9    })
10    implementation project(path: ':connectedapps-annotations')
11    implementation(deps.errorprone, {
12        exclude group: 'org.checkerframework', module: 'dataflow-errorprone'
13    })
14    testImplementation project(path: ':connectedapps-sharedtests')
15    testImplementation deps.robolectric
16    testImplementation 'junit:junit:4.13.1'
17    testImplementation 'com.google.truth:truth:1.1.2'
18    testImplementation 'androidx.test:core:1.3.0'
19    testImplementation project(path: ':connectedapps')
20    testImplementation project(path: ':connectedapps-annotations')
21    testImplementation project(path: ':connectedapps-processor')
22    testAnnotationProcessor project(path: ':connectedapps-processor')
23    testImplementation project(path: ':connectedapps-testing')
24    testImplementation project(path: ':connectedapps-testing-annotations')
25    testImplementation 'com.google.protobuf:protobuf-java:4.0.0-rc-2'
26    testAnnotationProcessor deps.autovalue
27    testImplementation deps.autovalueAnnotations
28}
29
30afterEvaluate {
31    publishing {
32        publications {
33            maven(MavenPublication) {
34                from components.release
35                groupId = 'com.google.android.enterprise.connectedapps'
36                artifactId = 'connectedapps'
37                version = project.version
38
39                pom {
40                    licenses {
41                        license {
42                            name = 'Apache 2.0'
43                            url = 'https://opensource.org/licenses/Apache-2.0'
44                        }
45                    }
46                }
47            }
48        }
49    }
50}
51
52android {
53    sourceSets {
54        test{
55            java.srcDir file('../tests/robotests/src')
56        }
57    }
58}
59
60android {
61    defaultConfig {
62        compileSdkVersion 30
63        minSdkVersion 26
64    }
65
66    buildFeatures {
67        aidl = true
68    }
69
70    testOptions.unitTests.includeAndroidResources = true
71
72    compileOptions {
73        sourceCompatibility JavaVersion.VERSION_1_8
74        targetCompatibility JavaVersion.VERSION_1_8
75    }
76}
77