misc(build.gradle): Remove Ben4J repo publishing & Update the artifact license

This commit is contained in:
KingRainbow44 2024-09-28 17:45:50 -04:00
parent 70bb5ca5b5
commit 0999038e33
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -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/'