update publishing section

This commit is contained in:
zontreck 2024-09-06 03:16:59 -07:00
parent 7ca8d0f771
commit cb8b45dad0

View file

@ -44,8 +44,6 @@ dependencies {
} }
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
@ -59,11 +57,10 @@ publishing {
url = "https://git.zontreck.com/api/packages/AriasCreations/maven" url = "https://git.zontreck.com/api/packages/AriasCreations/maven"
name = "ariascreations" name = "ariascreations"
def ENV = System.getenv() def ENV = System.getenv()
if (project.findProperty(MAVEN_PASSWORD_PROPERTY) != null) {
credentials { credentials {
username = ENV.MVN_USER username = ENV.MVN_USER
password = ENV.ACMVN password = ENV.ACMVN
}
} }
} }
} }