blob: f9a6886c4cf6fdd8fa246a42efefab6f1c23fe24 [file] [log] [blame]
plugins {
id 'com.android.library'
id 'maven-publish'
}
dependencies {
api deps.checkerFramework
implementation project(path: ':connectedapps-annotations')
testImplementation project(path: ':connectedapps-sharedtests')
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'junit:junit:4.13.1'
testImplementation 'com.google.truth:truth:1.1.2'
testImplementation 'androidx.test:core:1.3.0'
testImplementation project(path: ':connectedapps')
testImplementation project(path: ':connectedapps-annotations')
testImplementation project(path: ':connectedapps-processor')
testAnnotationProcessor project(path: ':connectedapps-processor')
testImplementation project(path: ':connectedapps-testing')
testImplementation project(path: ':connectedapps-testing-annotations')
testImplementation 'com.google.protobuf:protobuf-java:4.0.0-rc-2'
testAnnotationProcessor deps.autovalue
testImplementation deps.autovalueAnnotations
}
afterEvaluate {
publishing {
publications {
maven(MavenPublication) {
from components.release
groupId = 'com.google.android.enterprise.connectedapps'
artifactId = 'connectedapps'
version = project.version
pom {
licenses {
license {
name = 'Apache 2.0'
url = 'https://opensource.org/licenses/Apache-2.0'
}
}
}
}
}
}
}
android {
sourceSets {
test{
java.srcDir file('../tests/robotests/src')
}
}
}
android {
defaultConfig {
compileSdkVersion 30
minSdkVersion 26
}
buildFeatures {
aidl = true
}
testOptions.unitTests.includeAndroidResources = true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}