From 9c3fc3feb99ef246dcc65c347cbc7c17ac346415 Mon Sep 17 00:00:00 2001 From: zontreck Date: Thu, 12 Sep 2024 15:01:25 -0700 Subject: [PATCH] Adjust publishing URL --- .gitignore | 4 +++- build.gradle | 22 ++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index fb78797..9c2cf15 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,6 @@ replay_pid* .gradle build -bin \ No newline at end of file +bin + +.idea \ No newline at end of file diff --git a/build.gradle b/build.gradle index 8baaa7f..7569df0 100644 --- a/build.gradle +++ b/build.gradle @@ -52,11 +52,7 @@ println("Compile for version : ${version}") repositories { // Use Maven Central for resolving dependencies. - // mavenCentral() - maven { - url = "https://maven.zontreck.com/repository/internal" - name = "Aria's Creations" - } + mavenCentral() } dependencies { @@ -81,7 +77,9 @@ jar { jar.dependsOn(sourcesJar, javadocJar) -def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword" +def MAVEN_PASSWORD = "AriasCreationsMavenPassword" +def MAVEN_USER = "AriasCreationsMavenUser" + publishing { publications { mavenJava(MavenPublication) { @@ -90,15 +88,15 @@ publishing { artifact javadocJar } } + repositories { maven { - url = "https://maven.zontreck.com/repository/zontreck" + url = "https://git.zontreck.com/api/packages/AriasCreations/maven" name = "ariascreations" - if (project.findProperty(MAVEN_PASSWORD_PROPERTY) != null) { - credentials { - username = "admin" - password = project.findProperty(MAVEN_PASSWORD_PROPERTY) - } + + credentials { + username = project.findProperty(MAVEN_USER) + password = project.findProperty(MAVEN_PASSWORD) } } }