Skip to content

Commit

Permalink
Cleanup to build.gradle for 2.0.0 rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Aug 22, 2023
1 parent 69f992a commit 53e1014
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ subprojects {

group = 'com.github.retrooper'
description = project.name
version = '2.0.0'//TODO UPDATE - ADD "-SNAPSHOT"
version = '2.0.0'//TODO UPDATE - ADD "-SNAPSHOT" if we are dealing with snapshot versions

project.ext.nettyVersion = '4.1.72.Final'
project.ext.adventureVersion = '4.14.0'
Expand Down Expand Up @@ -80,13 +80,11 @@ subprojects {

repositories {
maven {
//TODO UPDATE isRelease boolean to publish to correct repository, for now we publish all to snapshots url
boolean isRelease = true
def snapshotUrl = "https://repo.codemc.io/repository/maven-snapshots/"
def releaseUrl = "https://repo.codemc.io/repository/maven-releases/"

// Check which URL should be used
url = isRelease ? releaseUrl : snapshotUrl
url = project.version.endsWith("SNAPSHOT") ? snapshotUrl : releaseUrl

def mavenUsername = System.getenv("retrooper_username") ? System.getenv("retrooper_username") : null
def mavenPassword = System.getenv("retrooper_password") ? System.getenv("retrooper_password") : null
Expand Down

0 comments on commit 53e1014

Please sign in to comment.