Skip to content

Commit

Permalink
Babric-ify
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Nov 1, 2023
1 parent b5738c2 commit 731cabf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ plugins {
id("org.cadixdev.licenser") version "0.6.1"
}

group 'net.fabricmc'
group 'babric'
archivesBaseName = 'lorenz-tiny'
version '4.0.2'
version '4.0.2-babric.2'

def ENV = System.getenv()
version = version + (ENV.GITHUB_ACTIONS ? "" : "+local")
Expand Down Expand Up @@ -69,7 +69,13 @@ publishing {
// A task to ensure that the version being released has not already been released.
task checkVersion {
doFirst {
def xml = new URL("https://maven.fabricmc.net/net/fabricmc/lorenz-tiny/maven-metadata.xml").text
String xml
try {
xml = new URL("${ENV.MAVEN_URL}/${project.group}/${project.name}/maven-metadata.xml").text
} catch (FileNotFoundException e) {
logger.warn("Couldn't fetch maven-metadata.xml", e)
return
}
def metadata = new XmlSlurper().parseText(xml)
def versions = metadata.versioning.versions.version*.text();
if (versions.contains(version)) {
Expand Down

0 comments on commit 731cabf

Please sign in to comment.