aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSciWhiz12 <arnoldnunag12@gmail.com>2021-05-15 11:22:48 +0800
committerSciWhiz12 <arnoldnunag12@gmail.com>2021-05-15 11:22:48 +0800
commit1f0dc02a5dc7ca7473c387f8a391d7c21cf96baa (patch)
treee2c95ce76e4a54f11fb296743b550c42471d2ff6
parent4b39e3af8d3c0fe9f0ae03391715ff586bccf56d (diff)
downloadArtifactural-1f0dc02a5dc7ca7473c387f8a391d7c21cf96baa.tar.gz
Artifactural-1f0dc02a5dc7ca7473c387f8a391d7c21cf96baa.tar.bz2
Artifactural-1f0dc02a5dc7ca7473c387f8a391d7c21cf96baa.zip
Update build.gradle to new Forge Maven url
-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()
}