blob: 8e8f114c27f2855aa8d4e00c28d125600ba93d20 [file] [log] [blame]
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.build.LibraryGroups
import androidx.build.LibraryType
import androidx.build.SupportConfig
import static androidx.build.SdkHelperKt.getSdkPath
import static androidx.build.dependencies.DependenciesKt.*
plugins {
id("AndroidXPlugin")
id("kotlin")
id("kotlin-kapt")
}
dependencies {
implementation(AUTO_COMMON)
implementation(AUTO_SERVICE_ANNOTATIONS)
implementation(GRADLE_INCAP_HELPER)
implementation(GUAVA)
implementation(JAVAPOET)
implementation(KOTLIN_STDLIB)
kapt(GRADLE_INCAP_HELPER_PROCESSOR)
kapt(AUTO_SERVICE_PROCESSOR)
testImplementation(JUNIT)
testImplementation(GOOGLE_COMPILE_TESTING)
testImplementation(TRUTH)
testRuntimeOnly(project(":resourceinspection:resourceinspection-annotation"))
testRuntimeOnly(project(":annotation:annotation"))
testRuntimeOnly(fileTree(
dir: "${getSdkPath(project)}/platforms/$SupportConfig.COMPILE_SDK_VERSION/",
include : "android.jar"))
testRuntimeOnly(INTELLIJ_ANNOTATIONS)
testRuntimeOnly(JSR250)
}
androidx {
name = "Android Resource Inspection - Annotation Processor"
type = LibraryType.ANNOTATION_PROCESSOR
mavenGroup = LibraryGroups.RESOURCEINSPECTION
inceptionYear = "2021"
description = "Annotation processors for Android resource and layout inspection"
}