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

27 lines
528 B
Kotlin

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.pill.PillExtension
plugins {
kotlin("jvm")
maven
}
publish()
standardPublicJars()
dependencies {
compile(kotlinStdlib())
}
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)
}
}