Skip to content

Commit 39c2c1f

Browse files
committed
Update gradle and license headers
1 parent e1d1685 commit 39c2c1f

File tree

252 files changed

+259
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+259
-267
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ tasks.named('shadowJar', ShadowJar).configure {
183183
configurations = [project.configurations.global]
184184
configurations.addAll(bySourceSetConfigurations.values())
185185
manifest.attributes(makeManifestAttributes(application.getMainClass().get()))
186-
classifier 'all'
186+
archiveClassifier.set 'all'
187187
group 'build'
188188
description 'Builds the whole project with its dependencies.'
189189
dependsOn tasks.named('updateLicenses')
@@ -193,7 +193,7 @@ tasks.named(JavaPlugin.JAR_TASK_NAME, Jar).configure {
193193
from sourceSets.main.output
194194
from sourceSets.core.output
195195
manifest.attributes(makeManifestAttributes(application.getMainClass().get()))
196-
classifier 'core-no-deps'
196+
archiveClassifier.set 'core-no-deps'
197197
description 'Builds the core sourceSet without its dependencies.'
198198
dependsOn tasks.named('updateLicenses')
199199
}
@@ -206,7 +206,7 @@ void configureBotJar(String botName, SourceSet sourceSet) {
206206
exclude 'META-INF/*.SF'
207207
exclude 'META-INF/*.DSA'
208208
exclude 'META-INF/*.RSA'
209-
classifier(botName)
209+
archiveClassifier.set(botName)
210210
manifest.attributes(makeManifestAttributes('com.mcmoddev.mmdbot.core.OnlyOneBotRunner'))
211211
configurations.add(project.configurations.global)
212212
configurations.add((Configuration) bySourceSetConfigurations.get(sourceSet))
@@ -218,7 +218,7 @@ void configureBotJar(String botName, SourceSet sourceSet) {
218218
from sourceSets.main.output
219219
from sourceSets.core.output
220220
from sourceSet.output
221-
classifier "${botName}-no-deps"
221+
archiveClassifier.set "${botName}-no-deps"
222222
manifest.attributes(makeManifestAttributes('com.mcmoddev.mmdbot.core.OnlyOneBotRunner'))
223223
group 'build'
224224
description "Builds the bot $botName without its dependencies."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,6 @@ set -- \
205205
org.gradle.wrapper.GradleWrapperMain \
206206
"$@"
207207

208-
# Stop when "xargs" is not available.
209-
if ! command -v xargs >/dev/null 2>&1
210-
then
211-
die "xargs is not available"
212-
fi
213-
214208
# Use "xargs" to parse quoted args.
215209
#
216210
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

gradlew.bat

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%"=="" @echo off
17+
@if "%DEBUG%" == "" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,7 +25,7 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%"=="" set DIRNAME=.
28+
if "%DIRNAME%" == "" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040

4141
set JAVA_EXE=java.exe
4242
%JAVA_EXE% -version >NUL 2>&1
43-
if %ERRORLEVEL% equ 0 goto execute
43+
if "%ERRORLEVEL%" == "0" goto execute
4444

4545
echo.
4646
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -75,15 +75,13 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7575

7676
:end
7777
@rem End local scope for the variables with windows NT shell
78-
if %ERRORLEVEL% equ 0 goto mainEnd
78+
if "%ERRORLEVEL%"=="0" goto mainEnd
7979

8080
:fail
8181
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8282
rem the _cmd.exe /c_ return code!
83-
set EXIT_CODE=%ERRORLEVEL%
84-
if %EXIT_CODE% equ 0 set EXIT_CODE=1
85-
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
86-
exit /b %EXIT_CODE%
83+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84+
exit /b 1
8785

8886
:mainEnd
8987
if "%OS%"=="Windows_NT" endlocal

src/commander/java/com/mcmoddev/mmdbot/commander/TheCommander.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* MMDBot - https://github.com/MinecraftModDevelopment/MMDBot
3-
* Copyright (C) 2016-2022 <MMD - MinecraftModDevelopment>
3+
* Copyright (C) 2016-2023 <MMD - MinecraftModDevelopment>
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public

src/commander/java/com/mcmoddev/mmdbot/commander/annotation/RegisterSlashCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* MMDBot - https://github.com/MinecraftModDevelopment/MMDBot
3-
* Copyright (C) 2016-2022 <MMD - MinecraftModDevelopment>
3+
* Copyright (C) 2016-2023 <MMD - MinecraftModDevelopment>
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public

src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* MMDBot - https://github.com/MinecraftModDevelopment/MMDBot
3-
* Copyright (C) 2016-2022 <MMD - MinecraftModDevelopment>
3+
* Copyright (C) 2016-2023 <MMD - MinecraftModDevelopment>
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public

src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProjects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* MMDBot - https://github.com/MinecraftModDevelopment/MMDBot
3-
* Copyright (C) 2016-2022 <MMD - MinecraftModDevelopment>
3+
* Copyright (C) 2016-2023 <MMD - MinecraftModDevelopment>
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public

src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* MMDBot - https://github.com/MinecraftModDevelopment/MMDBot
3-
* Copyright (C) 2016-2022 <MMD - MinecraftModDevelopment>
3+
* Copyright (C) 2016-2023 <MMD - MinecraftModDevelopment>
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public

src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* MMDBot - https://github.com/MinecraftModDevelopment/MMDBot
3-
* Copyright (C) 2016-2022 <MMD - MinecraftModDevelopment>
3+
* Copyright (C) 2016-2023 <MMD - MinecraftModDevelopment>
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public

0 commit comments

Comments
 (0)