Skip to content

Commit b154f73

Browse files
committed
Fix publishing scripts
1 parent 08859f7 commit b154f73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gradle/sonatype-central.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ tasks.register("publishSnapshotToCentral") {
107107

108108
// Upload each artifact file
109109
artifactDir.eachFile { file ->
110-
if (file.isFile() && !file.name.endsWith('.sha1') && !file.name.endsWith('.md5')) {
110+
if (file.isFile() && !file.name.endsWith('.sha1') && !file.name.endsWith('.md5') &&
111+
!file.name.endsWith('.sha256') && !file.name.endsWith('.sha512')) {
111112
println "Uploading ${file.name} to Sonatype Central snapshots..."
112113

113114
def connection = new URL("https://central.sonatype.com/api/v1/publisher/snapshots/${project.group}/${project.name}/${project.version}/${file.name}").openConnection()

0 commit comments

Comments
 (0)