diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-17 18:33:47 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-17 18:33:47 +0100 |
| commit | 0473971208eac8116dd0761e595d3a0a83d8e4ee (patch) | |
| tree | 95bcac4db216fb2554284b241f1db6e741b34076 /build.gradle | |
| parent | 32234ce4d1a08090357af81ac824ab42c0462065 (diff) | |
feat(): update to 1.21.11
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/build.gradle b/build.gradle index a6022a9..fdbfef6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins {
- id 'fabric-loom' version '1.10-SNAPSHOT'
+ id 'fabric-loom' version '1.15-SNAPSHOT'
id 'maven-publish'
}
@@ -59,32 +59,21 @@ processResources { }
}
-def targetJavaVersion = 21
tasks.withType(JavaCompile).configureEach {
- // ensure that the encoding is set to UTF-8, no matter what the system default is
- // this fixes some edge cases with special characters not displaying correctly
- // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
- // If Javadoc is generated, this must be specified in that task too.
+ it.options.release = 21
it.options.encoding = "UTF-8"
- if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
- it.options.release.set(targetJavaVersion)
- }
}
java {
- def javaVersion = JavaVersion.toVersion(targetJavaVersion)
- if (JavaVersion.current() < javaVersion) {
- toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
- }
- // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
- // if it is present.
- // If you remove this line, sources will not be generated.
withSourcesJar()
+
+ sourceCompatibility = JavaVersion.VERSION_21
+ targetCompatibility = JavaVersion.VERSION_21
}
jar {
from("LICENSE") {
- rename { "${it}_${project.archivesBaseName}"}
+ rename { "${it}_${inputs.properties.archivesName}"}
}
}
|
