a42f607ecf
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
36 lines
749 B
Kotlin
36 lines
749 B
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
import org.jetbrains.kotlin.pill.PillExtension
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
maven
|
|
id("jps-compatible")
|
|
}
|
|
|
|
publish()
|
|
|
|
standardPublicJars()
|
|
|
|
dependencies {
|
|
compile(kotlinStdlib())
|
|
compile(project(":kotlin-native:kotlin-native-utils"))
|
|
|
|
compileOnly(gradleApi())
|
|
compileOnly("com.android.tools.build:gradle:0.4.2")
|
|
}
|
|
|
|
pill {
|
|
variant = PillExtension.Variant.FULL
|
|
}
|
|
|
|
tasks {
|
|
withType<KotlinCompile> {
|
|
kotlinOptions.languageVersion = "1.2"
|
|
kotlinOptions.apiVersion = "1.2"
|
|
kotlinOptions.freeCompilerArgs += listOf("-Xskip-metadata-version-check")
|
|
}
|
|
|
|
named<Jar>("jar") {
|
|
callGroovy("manifestAttributes", manifest, project)
|
|
}
|
|
} |