This commit is contained in:
Brian Neumann-Fopiano
2026-04-13 17:06:29 -04:00
parent bf207b7062
commit 568fb07f66
8 changed files with 47 additions and 26 deletions
+19 -8
View File
@@ -75,12 +75,22 @@ nmsBindings.each { key, value ->
apply plugin: JavaPlugin
def nmsConfig = new Config()
nmsConfig.jvm = 21
nmsConfig.jvm = 25
nmsConfig.version = value
nmsConfig.type = Enum.valueOf(nmsTypeClass, 'DIRECT')
extensions.extraProperties.set('nms', nmsConfig)
plugins.apply(NMSBinding)
TaskProvider<Download> updateSpecialSource = tasks.register('updateSpecialSource', Download) {
src('https://repo1.maven.org/maven2/net/md-5/SpecialSource/1.11.6/SpecialSource-1.11.6-shaded.jar')
dest(layout.buildDirectory.file('tools/SpecialSource-1.11.4.jar'))
overwrite(true)
}
tasks.named('remap').configure {
dependsOn(updateSpecialSource)
}
dependencies {
compileOnly(project(':core'))
compileOnly(volmLibCoordinate) {
@@ -169,7 +179,7 @@ allprojects {
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
languageVersion = JavaLanguageVersion.of(25)
}
}
@@ -200,6 +210,7 @@ allprojects {
options.compilerArgs.add('-parameters')
options.encoding = 'UTF-8'
options.debugOptions.debugLevel = 'none'
options.release.set(25)
}
tasks.named('javadoc').configure {
@@ -219,18 +230,18 @@ allprojects {
}
}
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_21)) {
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_25)) {
System.err.println()
System.err.println('=========================================================================================================')
System.err.println('You must run gradle on Java 21 or newer. You are using ' + JavaVersion.current())
System.err.println('You must run gradle on Java 25 or newer. You are using ' + JavaVersion.current())
System.err.println()
System.err.println('=== For IDEs ===')
System.err.println('1. Configure the project for Java 21 toolchain')
System.err.println('2. Configure the bundled gradle to use Java 21+ in settings')
System.err.println('1. Configure the project for Java 25 toolchain')
System.err.println('2. Configure the bundled gradle to use Java 25+ in settings')
System.err.println()
System.err.println('=== For Command Line (gradlew) ===')
System.err.println('1. Install JDK 21 from https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html')
System.err.println('2. Set JAVA_HOME environment variable to the new jdk installation folder such as C:\\Program Files\\Java\\jdk-21.0.4')
System.err.println('1. Install JDK 25 from https://adoptium.net/temurin/releases/?version=25')
System.err.println('2. Set JAVA_HOME environment variable to the new jdk installation folder such as C:\\Program Files\\Java\\jdk-25')
System.err.println('3. Open a new command prompt window to get the new environment variables if need be.')
System.err.println('=========================================================================================================')
System.err.println()