Files
kotlin-fork/libraries/tools/kotlin-annotations-android/build.gradle.kts
T
Alexander Udalov d326d6a693 Specify module name via moduleName option instead of freeCompilerArgs
This allows to get rid of warnings about duplicate module name in some
of the modules.
2020-11-06 19:27:32 +01:00

38 lines
638 B
Kotlin

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.pill.PillExtension
description = "Kotlin annotations for Android"
plugins {
kotlin("jvm")
id("jps-compatible")
}
pill {
variant = PillExtension.Variant.FULL
}
jvmTarget = "1.6"
javaHome = rootProject.extra["JDK_16"] as String
tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf("-Xallow-kotlin-package")
kotlinOptions.moduleName = project.name
}
sourceSets {
"main" {
projectDefault()
}
}
dependencies {
compileOnly(kotlinBuiltins())
}
publish()
sourcesJar()
javadocJar()
runtimeJar()