Files
kotlin-fork/libraries/tools/kotlin-gradle-plugin-api/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

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)
}
}