aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorLifeIsAParadox <LifeIsAParadox@users.noreply.github.com>2021-12-09 19:51:35 +0100
committerTacoMonkey <75862693+TacoMonkey11@users.noreply.github.com>2022-01-25 16:43:22 -0500
commit3acbec693b93de43a91cc8bd4b5d4ba0466305ef (patch)
tree3310908eba14824262ce003541193c0282dde7b2 /build.gradle
parent17e083ed36b5fb3545ee04c11791160833207fed (diff)
downloadSkyblocker-3acbec693b93de43a91cc8bd4b5d4ba0466305ef.tar.gz
Skyblocker-3acbec693b93de43a91cc8bd4b5d4ba0466305ef.tar.bz2
Skyblocker-3acbec693b93de43a91cc8bd4b5d4ba0466305ef.zip
support 1.18.x minecraft version and update to 1.4.2 [skip ci]
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle14
1 files changed, 10 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index c5656d10..fc535314 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,8 +7,8 @@ plugins {
import com.modrinth.minotaur.TaskModrinthUpload
import com.modrinth.minotaur.request.VersionType
-sourceCompatibility = JavaVersion.VERSION_16
-targetCompatibility = JavaVersion.VERSION_16
+sourceCompatibility = JavaVersion.VERSION_17
+targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = "${project.mod_version}+${project.minecraft_version}"
@@ -67,8 +67,14 @@ processResources {
}
tasks.withType(JavaCompile).configureEach {
- // Minecraft 1.17 (21w19a) upwards uses Java 16.
- it.options.release = 16
+ // 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.encoding = "UTF-8"
+
+ // Minecraft 1.18 upwards uses Java 17.
+ it.options.release = 17
}
java {