Skip to content

Commit

Permalink
ci: Disable checkVersion task (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylv256 authored Aug 15, 2024
1 parent d212755 commit 4c29a99
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ publishing {

// A task to ensure that the version being released has not already been released.
task checkVersion {
doFirst {
def xml = new URL("https://maven.muonmc.org/net/fabricmc/tiny-remapper/maven-metadata.xml").text
def metadata = new XmlSlurper().parseText(xml)
def versions = metadata.versioning.versions.version*.text();
if (versions.contains(version)) {
throw new RuntimeException("${version} has already been released!")
}
}
// doFirst {
// def xml = new URL("https://maven.muonmc.org/net/fabricmc/tiny-remapper/maven-metadata.xml").text
// def metadata = new XmlSlurper().parseText(xml)
// def versions = metadata.versioning.versions.version*.text();
// if (versions.contains(version)) {
// throw new RuntimeException("${version} has already been released!")
// }
// }
}

//publish.mustRunAfter checkVersion
publish.mustRunAfter checkVersion

0 comments on commit 4c29a99

Please sign in to comment.