Update to use environment variables in build env

This commit is contained in:
zontreck 2024-09-12 01:38:45 -07:00
parent 4cdcb54f2e
commit 31d49e2cf9

View file

@ -44,6 +44,9 @@ dependencies {
} }
def MAVEN_PASSWORD = "AriasCreationsMavenPassword"
def MAVEN_USER = "AriasCreationsMavenUser"
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
@ -52,14 +55,15 @@ publishing {
artifact javadocJar artifact javadocJar
} }
} }
repositories { repositories {
maven { maven {
url = "https://git.zontreck.com/api/packages/AriasCreations/maven" url = "https://git.zontreck.com/api/packages/AriasCreations/maven"
name = "ariascreations" name = "ariascreations"
credentials { credentials {
username = ENV.MVN_USER username = project.findProperty(MAVEN_USER)
password = ENV.ACMVN password = project.findProperty(MAVEN_PASSWORD)
} }
} }
} }