mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-07-24 14:33:53 +00:00
Update build.gradle
This commit is contained in:
parent
e94613d973
commit
20ed9f557a
1 changed files with 12 additions and 1 deletions
13
build.gradle
13
build.gradle
|
@ -70,7 +70,18 @@ publishing {
|
|||
}
|
||||
}
|
||||
repositories {
|
||||
maven { url = 'https://repo.codemc.org/repository/maven-releases/' }
|
||||
if (project.hasProperty('mavenUsername') && project.hasProperty('mavenPassword')) {
|
||||
maven {
|
||||
credentials {
|
||||
username project.mavenUsername
|
||||
password project.mavenPassword
|
||||
}
|
||||
|
||||
def releasesRepoUrl = 'https://repo.codemc.org/repository/maven-releases/'
|
||||
def snapshotsRepoUrl = 'https://repo.codemc.org/repository/maven-snapshots/'
|
||||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue