Skip to content

Commit b9b9378

Browse files
committed
fix
1 parent 31521a4 commit b9b9378

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

build.gradle

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,6 @@ publishing {
107107
artifact sourcesJar
108108
artifact javadocJar
109109

110-
project.tasks.withType(Sign) {
111-
signatures.all {
112-
def type = it.type
113-
if (it.file.name.endsWith('.tar.gz.asc')) { // Workaround in case a tar.gz file should published
114-
type = 'tar.gz.asc'
115-
} else if (it.type.equals('xml.asc')) { // Set correct extension for signature of pom file
116-
type = 'pom.asc'
117-
}
118-
artifact source: it.file, classifier: it.classifier ?: null, extension: type
119-
}
120-
}
121110

122111

123112
pom.withXml {
@@ -161,6 +150,19 @@ publishing {
161150
}
162151
}
163152
}
153+
154+
project.tasks.withType(Sign) {
155+
signatures.all {
156+
def type = it.type
157+
if (it.file.name.endsWith('.tar.gz.asc')) { // Workaround in case a tar.gz file should published
158+
type = 'tar.gz.asc'
159+
} else if (it.type.equals('xml.asc')) { // Set correct extension for signature of pom file
160+
type = 'pom.asc'
161+
}
162+
artifact source: it.file, classifier: it.classifier ?: null, extension: type
163+
}
164+
}
165+
164166
}
165167
}
166168
}

0 commit comments

Comments
 (0)