Changes the way that publishing works

This commit is contained in:
Aria 2023-06-21 22:41:30 -07:00
parent 3930e7bb30
commit b7defe82bb

View file

@ -46,6 +46,8 @@ dependencies {
implementation 'com.google.guava:guava:31.1-jre'
}
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
publishing {
publications {
mavenJava(MavenPublication) {
@ -54,7 +56,14 @@ publishing {
}
repositories {
maven {
url "file://${project.projectDir}/final"
url = "https://maven.zontreck.dev/repository/ariascreations"
name = "ariascreations"
if (project.findProperty(MAVEN_PASSWORD_PROPERTY) != null) {
credentials {
username = "admin"
password = project.findProperty(MAVEN_PASSWORD_PROPERTY)
}
}
}
}
}