@@ -168,10 +168,11 @@ project(':api') {
168168 archives javadocJar, sourcesJar, shadowJar
169169 }
170170
171- tasks. withType(Jar ) { task ->
172- task. doLast {
173- ant. checksum algorithm : ' md5' , file : it. archivePath
174- ant. checksum algorithm : ' sha1' , file : it. archivePath
171+ tasks. withType(Jar ). configureEach {
172+ doLast {
173+ def jarFile = archiveFile. get(). asFile
174+ ant. checksum algorithm : ' md5' , file : jarFile
175+ ant. checksum algorithm : ' sha1' , file : jarFile
175176 }
176177 }
177178
@@ -225,10 +226,10 @@ project(':api') {
225226 }
226227
227228 signing {
228- setRequired {
229+ required {
229230 gradle. taskGraph. allTasks. any { it. name. contains(' LocalMavenWithChecksums' ) }
230- sign publishing. publications. minioJava
231231 }
232+ sign publishing. publications. minioJava
232233 }
233234}
234235
@@ -287,10 +288,11 @@ project(':adminapi') {
287288 archives javadocJar, sourcesJar, shadowJar
288289 }
289290
290- tasks. withType(Jar ) { task ->
291- task. doLast {
292- ant. checksum algorithm : ' md5' , file : it. archivePath
293- ant. checksum algorithm : ' sha1' , file : it. archivePath
291+ tasks. withType(Jar ). configureEach {
292+ doLast {
293+ def jarFile = archiveFile. get(). asFile
294+ ant. checksum algorithm : ' md5' , file : jarFile
295+ ant. checksum algorithm : ' sha1' , file : jarFile
294296 }
295297 }
296298
@@ -344,10 +346,10 @@ project(':adminapi') {
344346 }
345347
346348 signing {
347- setRequired {
349+ required {
348350 gradle. taskGraph. allTasks. any { it. name. contains(' LocalMavenWithChecksumsRepository' ) }
349- sign publishing. publications. minioJava
350351 }
352+ sign publishing. publications. minioJava
351353 }
352354}
353355
0 commit comments