File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments