Skip to content

Commit

Permalink
Update publishing details to be more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed May 5, 2024
1 parent 94adec2 commit c63dc5c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ plugins {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

if(rootProject.file('private.gradle').exists()) { //Publishing details
apply from: 'private.gradle'
}

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
Expand Down Expand Up @@ -55,16 +51,15 @@ publishing {

// select the repositories you want to publish to
repositories {
if (project.hasProperty("artifactoryUsername")) {
def env = System.getenv()
if (env.MAVEN_URL) {
maven {
url = "https://server.bbkr.space/artifactory/libs-release/"
url = env.MAVEN_URL
credentials {
username = artifactoryUsername
password = artifactoryPassword
username = env.MAVEN_USERNAME
password = env.MAVEN_PASSWORD
}
}
} else {
println "Cannot configure artifactory; please define ext.artifactoryUsername and ext.artifactoryPassword before running publish"
}
}
}

0 comments on commit c63dc5c

Please sign in to comment.