blob: c8586b6050aeeecfe2d585c1d2cf0b1733c8a87e [file] [log] [blame]
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Owen Gray74cc2592020-09-24 15:05:40 -040017import androidx.build.LibraryType
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070018
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070019plugins {
20 id('AndroidXPlugin')
21 id('java-library')
22}
23
Ember Rosec662e1a2022-09-16 14:37:50 -040024androidx.configureAarAsJarForConfiguration("testImplementation")
Aurimas Liutikas7d0ea3322022-09-13 18:47:56 -070025
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070026dependencies {
27 api('androidx.annotation:annotation:1.1.0')
Aurimas Liutikas907dc022021-06-23 09:37:56 -070028 api(libs.jsr250)
29 implementation(libs.autoCommon)
Yang Yu83de4e12021-06-29 16:17:18 -070030 implementation(libs.autoValue)
31 implementation(libs.autoValueAnnotations)
Aurimas Liutikas907dc022021-06-23 09:37:56 -070032 implementation(libs.javapoet)
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070033
34 // For testing, add in the compiled classes from appsearch to get access to annotations.
Ember Rosec662e1a2022-09-16 14:37:50 -040035 testImplementationAarAsJar(project(":appsearch:appsearch"))
Aurimas Liutikas907dc022021-06-23 09:37:56 -070036 testImplementation(libs.googleCompileTesting)
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070037}
38
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070039androidx {
40 name = 'AndroidX AppSearch Compiler'
Daniel Santiago Rivera565946b2022-08-01 11:49:07 -070041 type = LibraryType.ANNOTATION_PROCESSOR
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070042 mavenGroup = LibraryGroups.APPSEARCH
43 inceptionYear = '2019'
Alexander Dorokhine19107092021-01-28 23:40:40 -080044 description = 'Compiler for classes annotated with @androidx.appsearch.annotation.Document'
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070045 failOnDeprecationWarnings = false
Alexander Dorokhine8f6f4c72020-05-13 11:05:41 -070046}