From 0999038e337d1d9ffb5ab7a4bf4500a7e54c3ae6 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 28 Sep 2024 17:45:50 -0400 Subject: [PATCH] misc(build.gradle): Remove Ben4J repo publishing & Update the artifact license --- build.gradle | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/build.gradle b/build.gradle index a0375b48f..5b04cf045 100644 --- a/build.gradle +++ b/build.gradle @@ -202,8 +202,8 @@ publishing { url = 'https://github.com/Grasscutters/Grasscutter' licenses { license { - name = 'The Apache License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' + name = 'GNU Affero General Public License, Version 3.0' + url = 'https://www.gnu.org/licenses/agpl-3.0.txt' } } developers { @@ -224,22 +224,9 @@ publishing { repositories { maven { - if (version.endsWith('-dev')) { - // Check if the action being ran is 'publish'. + if (!version.endsWith('-dev')) { if (publish.state.executing) { - println('Publishing to Ben4J-Maven') - } - - 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') + println('Publishing artifact to Sonatype repository...') } def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'