xref: /aosp_15_r20/external/connectedappssdk/processor/build.gradle (revision 27eda0084a137a3c4c52875b384c53ea95161e62)
1*27eda008SAndroid Build Coastguard Workerplugins {
2*27eda008SAndroid Build Coastguard Worker    id 'java-library'
3*27eda008SAndroid Build Coastguard Worker    id 'maven-publish'
4*27eda008SAndroid Build Coastguard Worker}
5*27eda008SAndroid Build Coastguard Worker
6*27eda008SAndroid Build Coastguard Workerdependencies {
7*27eda008SAndroid Build Coastguard Worker    compileOnly deps.autovalueAnnotations
8*27eda008SAndroid Build Coastguard Worker    compileOnly deps.autoserviceAnnotations
9*27eda008SAndroid Build Coastguard Worker    implementation deps.javapoet
10*27eda008SAndroid Build Coastguard Worker    implementation deps.guava
11*27eda008SAndroid Build Coastguard Worker    implementation project(path: ':connectedapps-annotations')
12*27eda008SAndroid Build Coastguard Worker    implementation project(path: ':connectedapps-testing-annotations')
13*27eda008SAndroid Build Coastguard Worker
14*27eda008SAndroid Build Coastguard Worker    annotationProcessor deps.autovalue
15*27eda008SAndroid Build Coastguard Worker    annotationProcessor deps.autoservice
16*27eda008SAndroid Build Coastguard Worker}
17*27eda008SAndroid Build Coastguard Worker
18*27eda008SAndroid Build Coastguard Workerpublishing {
19*27eda008SAndroid Build Coastguard Worker    publications {
20*27eda008SAndroid Build Coastguard Worker        maven(MavenPublication) {
21*27eda008SAndroid Build Coastguard Worker            from components.java
22*27eda008SAndroid Build Coastguard Worker            groupId = 'com.google.android.enterprise.connectedapps'
23*27eda008SAndroid Build Coastguard Worker            artifactId = 'connectedapps-processor'
24*27eda008SAndroid Build Coastguard Worker            version = project.version
25*27eda008SAndroid Build Coastguard Worker
26*27eda008SAndroid Build Coastguard Worker            pom {
27*27eda008SAndroid Build Coastguard Worker                licenses {
28*27eda008SAndroid Build Coastguard Worker                    license {
29*27eda008SAndroid Build Coastguard Worker                        name = 'Apache 2.0'
30*27eda008SAndroid Build Coastguard Worker                        url = 'https://opensource.org/licenses/Apache-2.0'
31*27eda008SAndroid Build Coastguard Worker                    }
32*27eda008SAndroid Build Coastguard Worker                }
33*27eda008SAndroid Build Coastguard Worker            }
34*27eda008SAndroid Build Coastguard Worker        }
35*27eda008SAndroid Build Coastguard Worker    }
36*27eda008SAndroid Build Coastguard Worker}
37*27eda008SAndroid Build Coastguard Worker
38*27eda008SAndroid Build Coastguard Workerjava {
39*27eda008SAndroid Build Coastguard Worker    sourceCompatibility = JavaVersion.VERSION_1_8
40*27eda008SAndroid Build Coastguard Worker    targetCompatibility = JavaVersion.VERSION_1_8
41*27eda008SAndroid Build Coastguard Worker}
42