Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Fix version being null in pom
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungerMax committed Mar 19, 2022
1 parent 79ef881 commit 494a1f4
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ publishing {
name = 'JAR Remapper Dev'
description = 'Developer plugin for JAR Remapper'
artifactId = 'devplugin'
version = System.getenv("RELEASE_VERSION")
version = System.getenv("RELEASE_VERSION") != null ? System.getenv("RELEASE_VERSION") : project.version

licenses {
license {
Expand All @@ -61,22 +61,18 @@ publishing {
}

repositories {
if (System.getenv("REPO_URL")) {
maven {
url System.getenv("REPO_URL")
name 'pocolifo'
maven {
url System.getenv("REPO_URL")
name 'pocolifo'

credentials {
username = System.getenv("REPO_USERNAME")
password = System.getenv("REPO_PASSWORD")
}
credentials {
username = System.getenv("REPO_USERNAME")
password = System.getenv("REPO_PASSWORD")
}

authentication {
basic(BasicAuthentication)
}
authentication {
basic(BasicAuthentication)
}
} else {
mavenLocal()
}
}
}

0 comments on commit 494a1f4

Please sign in to comment.