Adjust publishing URL

This commit is contained in:
zontreck 2024-09-12 15:01:25 -07:00
parent 0b79531751
commit 9c3fc3feb9
2 changed files with 13 additions and 13 deletions

2
.gitignore vendored
View file

@ -28,3 +28,5 @@ replay_pid*
build build
bin bin
.idea

View file

@ -52,11 +52,7 @@ println("Compile for version : ${version}")
repositories { repositories {
// Use Maven Central for resolving dependencies. // Use Maven Central for resolving dependencies.
// mavenCentral() mavenCentral()
maven {
url = "https://maven.zontreck.com/repository/internal"
name = "Aria's Creations"
}
} }
dependencies { dependencies {
@ -81,7 +77,9 @@ jar {
jar.dependsOn(sourcesJar, javadocJar) jar.dependsOn(sourcesJar, javadocJar)
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword" def MAVEN_PASSWORD = "AriasCreationsMavenPassword"
def MAVEN_USER = "AriasCreationsMavenUser"
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
@ -90,15 +88,15 @@ publishing {
artifact javadocJar artifact javadocJar
} }
} }
repositories { repositories {
maven { maven {
url = "https://maven.zontreck.com/repository/zontreck" url = "https://git.zontreck.com/api/packages/AriasCreations/maven"
name = "ariascreations" name = "ariascreations"
if (project.findProperty(MAVEN_PASSWORD_PROPERTY) != null) {
credentials { credentials {
username = "admin" username = project.findProperty(MAVEN_USER)
password = project.findProperty(MAVEN_PASSWORD_PROPERTY) password = project.findProperty(MAVEN_PASSWORD)
}
} }
} }
} }