1plugins { 2 id 'com.android.library' 3 id 'maven-publish' 4} 5 6dependencies { 7 implementation project(path: ':connectedapps-annotations') 8 implementation project(path: ':connectedapps') 9 implementation deps.androidxTest 10} 11 12afterEvaluate { 13 publishing { 14 publications { 15 maven(MavenPublication) { 16 from components.release 17 groupId = 'com.google.android.enterprise.connectedapps' 18 artifactId = 'connectedapps-testing' 19 version = project.version 20 21 pom { 22 licenses { 23 license { 24 name = 'Apache 2.0' 25 url = 'https://opensource.org/licenses/Apache-2.0' 26 } 27 } 28 } 29 } 30 } 31 } 32} 33 34android { 35 defaultConfig { 36 compileSdkVersion 30 37 minSdkVersion 26 38 } 39 40 buildFeatures { 41 aidl = true 42 } 43 44 testOptions.unitTests.includeAndroidResources = true 45 46 compileOptions { 47 sourceCompatibility JavaVersion.VERSION_1_8 48 targetCompatibility JavaVersion.VERSION_1_8 49 } 50} 51