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:
@@ -47,6 +47,11 @@ dependencies {
|
||||
testRuntime(project(":kotlin-reflect"))
|
||||
}
|
||||
|
||||
|
||||
if (deployVersion != null) {
|
||||
publish()
|
||||
}
|
||||
|
||||
noDefaultJar()
|
||||
|
||||
task<ShadowJar>("shadowJar") {
|
||||
@@ -75,8 +80,3 @@ sourcesJar {
|
||||
}
|
||||
|
||||
javadocJar()
|
||||
|
||||
if (deployVersion != null) {
|
||||
publish()
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ sourceSets {
|
||||
"test" {}
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
val jar = runtimeJar()
|
||||
val sourcesJar = sourcesJar()
|
||||
val javadocJar = javadocJar()
|
||||
@@ -27,5 +29,3 @@ dist()
|
||||
ideaPlugin {
|
||||
from(jar, sourcesJar)
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
@@ -16,9 +16,8 @@ sourceSets {
|
||||
"test" { }
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
standardPublicJars()
|
||||
|
||||
ideaPlugin()
|
||||
|
||||
publish()
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ sourceSets {
|
||||
"test" {}
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
noDefaultJar()
|
||||
|
||||
runtimeJar(rewriteDepsToShadedCompiler(
|
||||
@@ -33,5 +35,3 @@ runtimeJar(rewriteDepsToShadedCompiler(
|
||||
))
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
publish()
|
||||
|
||||
@@ -26,9 +26,10 @@ sourceSets {
|
||||
"test" { projectDefault() }
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
standardPublicJars()
|
||||
|
||||
publish()
|
||||
|
||||
projectTest {
|
||||
workingDir = rootDir
|
||||
|
||||
@@ -17,6 +17,8 @@ sourceSets {
|
||||
"test" {}
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
val jar = runtimeJar()
|
||||
val sourcesJar = sourcesJar()
|
||||
val javadocJar = javadocJar()
|
||||
@@ -26,7 +28,3 @@ dist()
|
||||
ideaPlugin {
|
||||
from(jar, sourcesJar)
|
||||
}
|
||||
|
||||
standardPublicJars()
|
||||
|
||||
publish()
|
||||
|
||||
@@ -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