aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle15
1 files changed, 5 insertions, 10 deletions
diff --git a/build.gradle b/build.gradle
index 0234a4d..24bc15c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,10 +5,6 @@ plugins {
id 'checkstyle'
}
-if(rootProject.file('private.gradle').exists()) { //Publishing details
- apply from: 'private.gradle'
-}
-
archivesBaseName = project.archives_base_name
version = "$project.mod_version+$project.minecraft_version"
group = project.maven_group
@@ -187,16 +183,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"
}
}
}