mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 11:33:36 +00:00
misc(build.gradle): Remove Ben4J repo publishing & Update the artifact license
This commit is contained in:
parent
70bb5ca5b5
commit
0999038e33
21
build.gradle
21
build.gradle
@ -202,8 +202,8 @@ publishing {
|
|||||||
url = 'https://github.com/Grasscutters/Grasscutter'
|
url = 'https://github.com/Grasscutters/Grasscutter'
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
name = 'The Apache License, Version 2.0'
|
name = 'GNU Affero General Public License, Version 3.0'
|
||||||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
url = 'https://www.gnu.org/licenses/agpl-3.0.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
developers {
|
developers {
|
||||||
@ -224,22 +224,9 @@ publishing {
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
if (version.endsWith('-dev')) {
|
if (!version.endsWith('-dev')) {
|
||||||
// Check if the action being ran is 'publish'.
|
|
||||||
if (publish.state.executing) {
|
if (publish.state.executing) {
|
||||||
println('Publishing to Ben4J-Maven')
|
println('Publishing artifact to Sonatype repository...')
|
||||||
}
|
|
||||||
|
|
||||||
url 'https://repo.4benj.com/releases'
|
|
||||||
name '4benj-maven'
|
|
||||||
credentials {
|
|
||||||
username System.getenv('benj_maven_username')
|
|
||||||
password System.getenv('benj_maven_token')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// Check if the action being ran is 'publish'.
|
|
||||||
if (publish.state.executing) {
|
|
||||||
println('Publishing to Sonatype')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
|
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||||
|
Loading…
Reference in New Issue
Block a user