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