mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 17:51:53 +00:00
Set up publishing to 4benj-maven for dev builds
This commit is contained in:
parent
f331afe339
commit
b5c6b4795e
26
build.gradle
26
build.gradle
@ -171,13 +171,23 @@ publishing {
|
|||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
// change URLs to point to your repos, e.g. http://my.org/repo
|
if(version.endsWith('-dev')) {
|
||||||
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
|
println ("Publishing to 4benj-maven")
|
||||||
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
|
url 'https://repo.4benj.com/releases'
|
||||||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
name '4benj-maven'
|
||||||
|
credentials {
|
||||||
|
username System.getenv('benj_maven_username')
|
||||||
|
password System.getenv('benj_maven_token')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
println ("Publishing to sonatype")
|
||||||
|
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||||
|
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
|
||||||
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||||
|
|
||||||
name = 'sonatype'
|
name = 'sonatype'
|
||||||
credentials(PasswordCredentials)
|
credentials(PasswordCredentials)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -225,7 +235,9 @@ eclipse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
signing {
|
signing {
|
||||||
sign publishing.publications.mavenJava
|
if(!version.endsWith('-dev')) {
|
||||||
|
sign publishing.publications.mavenJava
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
javadoc {
|
javadoc {
|
||||||
|
Loading…
Reference in New Issue
Block a user