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:
Vyacheslav Gerasimov
2019-02-21 22:22:47 +03:00
parent df3aa48c9b
commit a42f607ecf
33 changed files with 72 additions and 61 deletions
+2 -2
View File
@@ -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
+2 -4
View File
@@ -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()