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
This commit is contained in:
@@ -20,6 +20,8 @@ projectTest {
|
||||
workingDir = projectDir
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
val jar: Jar by tasks
|
||||
jar.apply {
|
||||
classifier = "base"
|
||||
@@ -33,5 +35,3 @@ runtimeJar(rewriteDepsToShadedCompiler(
|
||||
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
publish()
|
||||
|
||||
@@ -22,9 +22,10 @@ sourceSets {
|
||||
}
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
runtimeJar()
|
||||
dist()
|
||||
|
||||
publish()
|
||||
|
||||
@@ -7,9 +7,10 @@ plugins {
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
standardPublicJars()
|
||||
publish()
|
||||
|
||||
standardPublicJars()
|
||||
|
||||
dependencies {
|
||||
compile(kotlinStdlib())
|
||||
compile(project(":kotlin-native:kotlin-native-utils"))
|
||||
|
||||
@@ -6,9 +6,10 @@ plugins {
|
||||
maven
|
||||
}
|
||||
|
||||
standardPublicJars()
|
||||
publish()
|
||||
|
||||
standardPublicJars()
|
||||
|
||||
dependencies {
|
||||
compile(kotlinStdlib())
|
||||
}
|
||||
|
||||
@@ -11,13 +11,14 @@ plugins {
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
// todo: make lazy
|
||||
val jar: Jar by tasks
|
||||
runtimeJar(rewriteDepsToShadedCompiler(jar))
|
||||
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
publish()
|
||||
|
||||
repositories {
|
||||
google()
|
||||
|
||||
@@ -55,6 +55,8 @@ sourceSets {
|
||||
"test" { }
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
noDefaultJar()
|
||||
|
||||
val packJar by task<ShadowJar> {
|
||||
@@ -98,5 +100,3 @@ dist(
|
||||
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
publish()
|
||||
|
||||
@@ -40,10 +40,11 @@ projectTest {
|
||||
workingDir = rootDir
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
runtimeJar()
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
publish()
|
||||
|
||||
ideaPlugin()
|
||||
|
||||
Reference in New Issue
Block a user