mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-02-11 21:30:53 +00:00
This should allow the build to no longer require signing to be setup.
This commit is contained in:
parent
5fbaa95ed0
commit
ea1a9a2e34
@ -4,6 +4,9 @@ plugins {
|
||||
id 'signing'
|
||||
}
|
||||
|
||||
ext.isSnapshotVersion = version.endsWith("SNAPSHOT")
|
||||
ext.isReleaseVersion = !ext.isSnapshotVersion
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
@ -38,6 +41,10 @@ java {
|
||||
}
|
||||
|
||||
signing {
|
||||
// Only sign if we're uploading...
|
||||
required {
|
||||
isReleaseVersion && gradle.taskGraph.hasTask("publish")
|
||||
}
|
||||
sign configurations.archives
|
||||
}
|
||||
|
||||
@ -74,7 +81,7 @@ publishing {
|
||||
maven {
|
||||
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
|
||||
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||
url = version.endsWith("SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl
|
||||
url = isSnapshotVersion ? snapshotsRepoUrl : releasesRepoUrl
|
||||
credentials {
|
||||
username = findProperty('ossrhUsername')
|
||||
password = findProperty('ossrhPassword')
|
||||
|
Loading…
x
Reference in New Issue
Block a user