8a82c1618c
When plugins DSL is used, there is no need to manually generate typesafe accessors for extensions and conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
31 lines
486 B
Kotlin
31 lines
486 B
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
description = "Kotlin annotations for Android"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
jvmTarget = "1.6"
|
|
javaHome = rootProject.extra["JDK_16"] as String
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xallow-kotlin-package",
|
|
"-module-name", project.name
|
|
)
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {
|
|
projectDefault()
|
|
}
|
|
}
|
|
|
|
sourcesJar()
|
|
javadocJar()
|
|
runtimeJar()
|
|
dist()
|
|
|
|
publish()
|