blob: 0124e119e70a57708736e8a0ecb47cd1e148ab00 [file] [log] [blame]
/*
* Copyright 2019 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 static androidx.build.dependencies.DependenciesKt.*
import androidx.build.CompilationTarget
import androidx.build.LibraryGroups
import androidx.build.LibraryVersions
import androidx.build.Publish
import org.gradle.internal.jvm.Jvm
plugins {
id("AndroidXPlugin")
id("kotlin")
id("kotlin-kapt")
}
dependencies {
api(project(":serialization:serialization-schema"))
api(AUTO_COMMON)
api(GUAVA)
implementation(project(":serialization:serialization-annotation"))
implementation(JAVAPOET)
implementation(KOTLINPOET)
implementation(KOTLIN_METADATA_JVM)
implementation(KOTLIN_STDLIB)
compileOnly(AUTO_SERVICE_ANNOTATIONS)
kapt(AUTO_SERVICE_PROCESSOR)
compileOnly(GRADLE_INCAP_HELPER)
kapt(GRADLE_INCAP_HELPER_PROCESSOR)
testImplementation("androidx.annotation:annotation:1.0.0")
testImplementation("androidx.collection:collection:1.0.0")
testImplementation(files(Jvm.current().getToolsJar()))
testImplementation(GOOGLE_COMPILE_TESTING)
testImplementation(INTELLIJ_ANNOTATIONS)
testImplementation(JSR250)
testImplementation(JUNIT)
testImplementation(MOCKITO_CORE)
testImplementation(MOCKITO_KOTLIN)
testImplementation(TRUTH)
}
androidx {
name = "AndroidX Serialization - Compiler"
publish = Publish.NONE
toolingProject = true
compilationTarget = CompilationTarget.HOST
mavenVersion = LibraryVersions.SERIALIZATION
mavenGroup = LibraryGroups.SERIALIZATION
inceptionYear = "2019"
description = "Annotation processor for AndroidX Serialization"
}