Skip to content

Commit

Permalink
fix maven upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Jul 15, 2023
1 parent b109b72 commit 71e9690
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ tasks.withType(GenerateModuleMetadata).configureEach {

//properties to put in $HOME/.gradle/gradle.properties
def MAVEN_PASSWORD_PROPERTY_NAME = 'mekanismMavenPassword'
def MODMAVEN_PW = System.getenv('MEK_MAVEN_PW') ?: (String)project.findProperty(MAVEN_PASSWORD_PROPERTY_NAME)

publishing {
publications { PublicationContainer publicationContainer ->
Expand Down Expand Up @@ -652,10 +653,10 @@ publishing {
repositories {
maven {
url = 'https://modmaven.dev/artifactory/local-releases/'
if (project.findProperty(MAVEN_PASSWORD_PROPERTY_NAME) != null) {
if (MODMAVEN_PW != null) {
credentials {
username = "mekanism"
password = project.findProperty(MAVEN_PASSWORD_PROPERTY_NAME)
password = MODMAVEN_PW
}
}
}
Expand Down

0 comments on commit 71e9690

Please sign in to comment.