Files
kotlin-fork/libraries/tools/kotlin-annotations-android/build.gradle.kts
T
Vyacheslav Gerasimov a42f607ecf Build: Fix artifacts signing for maven central
With gradle > 5.0 `publish()` helper call should be done before
`noDefaultJar()` or any other artifact hacks, otherwise singing plugin doesn't sign any jars
2019-02-27 13:21:17 +03:00

32 lines
487 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()
}
}
publish()
sourcesJar()
javadocJar()
runtimeJar()
dist()