aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle14
1 files changed, 10 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index a1aa9e9..f73cc9b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,6 +21,9 @@ sourceSets {
repositories {
jcenter()
mavenCentral()
+ maven {
+ url = 'https://maven.minecraftforge.net'
+ }
}
configurations {
@@ -147,12 +150,15 @@ publishing {
}
repositories {
maven {
- if (project.hasProperty('mavenPassword')) {
+ if (System.env.MAVEN_USER) {
+ url 'https://maven.minecraftforge.net/'
+ authentication {
+ basic(BasicAuthentication)
+ }
credentials {
- username = project.properties.mavenUser
- password = project.properties.mavenPassword
+ username = System.env.MAVEN_USER ?: 'not'
+ password = System.env.MAVEN_PASSWORD ?: 'set'
}
- url 'https://files.minecraftforge.net/maven/manage/upload'
} else {
url 'file://' + rootProject.file('repo').getAbsolutePath()
}