mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Нормальный, конфигурабельный фикс maven-publish.
This commit is contained in:
parent
3f6eb3156d
commit
24f9c05e14
2 changed files with 10 additions and 11 deletions
|
@ -37,6 +37,6 @@ public AuthProviderResult auth(String login, String password, String ip) throws
|
|||
|
||||
@Override
|
||||
public void close() {
|
||||
// Do nothing
|
||||
postgreSQLHolder.close();
|
||||
}
|
||||
}
|
19
build.gradle
19
build.gradle
|
@ -42,16 +42,15 @@
|
|||
}
|
||||
|
||||
defaultTasks 'build'
|
||||
|
||||
if (hasProperty('mavenUsername') && hasProperty('mavenPassword'))
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
// change URLs to point to your repos, e.g. http://my.org/repo
|
||||
url = version.endsWith('SNAPSHOT') ? 'https://oss.sonatype.org/content/repositories/snapshots/' : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username getProperty('mavenUsername')
|
||||
password getProperty('mavenPassword')
|
||||
if (hasProperty('mavenUsername') && hasProperty('mavenPassword') && hasProperty('mavenReleaseRepository') && hasProperty('mavenSnapshotRepository')) {
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url = version.endsWith('SNAPSHOT') ? getProperty('mavenSnapshotRepository') : getProperty('mavenReleaseRepository')
|
||||
credentials {
|
||||
username getProperty('mavenUsername')
|
||||
password getProperty('mavenPassword')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue