Changes the way that publishing works
This commit is contained in:
parent
3930e7bb30
commit
b7defe82bb
1 changed files with 10 additions and 1 deletions
11
build.gradle
11
build.gradle
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue