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
@@ -91,6 +91,8 @@ dependencies {
fatJarContentsStripMetadata(intellijDep()) { includeJars("oro-2.0.8", "jdom", "log4j" ) }
}
publish()
noDefaultJar()
val packCompiler by task<ShadowJar> {
@@ -156,5 +158,3 @@ sourcesJar {
}
javadocJar()
publish()
+2 -2
View File
@@ -154,6 +154,8 @@ dist(targetName = "$compilerBaseName.jar", fromTask = pack) {
from(trove4jJar)
}
publish()
runtimeJarArtifactBy(pack, pack.outputs.files.singleFile) {
name = compilerBaseName
classifier = ""
@@ -164,5 +166,3 @@ sourcesJar {
}
javadocJar()
publish()
+2 -1
View File
@@ -146,6 +146,8 @@ dist(targetName = "$compilerBaseName.jar", fromTask = pack) {
from(trove4jJar)
}
publish()
runtimeJarArtifactBy(pack, pack.outputs.files.singleFile) {
name = compilerBaseName
classifier = ""
@@ -157,4 +159,3 @@ sourcesJar {
javadocJar()
publish()