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 {
publications {
mavenJava(MavenPublication) {
@ -52,14 +55,15 @@ publishing {
artifact javadocJar
}
}
repositories {
maven {
url = "https://git.zontreck.com/api/packages/AriasCreations/maven"
name = "ariascreations"
credentials {
username = ENV.MVN_USER
password = ENV.ACMVN
username = project.findProperty(MAVEN_USER)
password = project.findProperty(MAVEN_PASSWORD)
}
}
}