11import com.github.jengelman.gradle.plugins.shadow.ShadowJavaPlugin
2- import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
32import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
43import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
54import java.net.URL
65
76plugins {
87 application
9- kotlin(" jvm" ) version " 1.9 .21"
8+ kotlin(" jvm" ) version " 2.1 .21"
109 id(" org.openjfx.javafxplugin" ) version " 0.1.0"
11- id(" com.github.johnrengelman. shadow" ) version " 7.1.2 "
10+ id(" com.gradleup. shadow" ) version " 8.3.6 "
1211}
1312
1413var mainClassName: String by application.mainClass
1514mainClassName = " com.dfsek.terra.biometool.BiomeToolLauncher"
1615
1716group = " com.dfsek"
18- version = " 0.4.8 "
17+ version = " 0.4.9 "
1918
2019val runDir = file(" $buildDir /run" )
2120
@@ -32,8 +31,8 @@ repositories {
3231}
3332
3433java {
35- targetCompatibility = JavaVersion .VERSION_17
36- sourceCompatibility = JavaVersion .VERSION_17
34+ targetCompatibility = JavaVersion .VERSION_21
35+ sourceCompatibility = JavaVersion .VERSION_21
3736}
3837
3938val javafxModules = listOf (
@@ -47,7 +46,7 @@ val javafxModules = listOf(
4746)
4847
4948javafx {
50- version = " 17 .0.9 "
49+ version = " 21 .0.2 "
5150 modules = javafxModules.map { " javafx.$it " }
5251}
5352
@@ -100,7 +99,7 @@ dependencies {
10099 implementation(kotlin(" stdlib" ))
101100 implementation(kotlin(" reflect" ))
102101
103- val terraGitHash = " 3aef97738 "
102+ val terraGitHash = " af9fb211a "
104103
105104 bootstrapTerraAddon(" com.dfsek.terra:api-addon-loader:0.1.0-BETA+$terraGitHash " )
106105 bootstrapTerraAddon(" com.dfsek.terra:manifest-addon-loader:1.0.0-BETA+$terraGitHash " )
@@ -121,7 +120,7 @@ dependencies {
121120 terraAddon(" com.dfsek.terra:config-feature:1.0.0-BETA+$terraGitHash " )
122121 terraAddon(" com.dfsek.terra:config-flora:1.0.1-BETA+$terraGitHash " )
123122 terraAddon(" com.dfsek.terra:config-locators:1.1.1-BETA+$terraGitHash " )
124- terraAddon(" com.dfsek.terra:config-noise-function:1.1 .0-BETA+$terraGitHash " )
123+ terraAddon(" com.dfsek.terra:config-noise-function:1.2 .0-BETA+$terraGitHash " )
125124 terraAddon(" com.dfsek.terra:config-number-predicate:1.0.0-BETA+$terraGitHash " )
126125 terraAddon(" com.dfsek.terra:config-ore:1.1.1-BETA+$terraGitHash " )
127126 terraAddon(" com.dfsek.terra:config-palette:1.0.0-BETA+$terraGitHash " )
@@ -141,21 +140,21 @@ dependencies {
141140 terraAddon(" com.dfsek.terra:terrascript-function-sampler:1.0.0-BETA+$terraGitHash " )
142141
143142
144- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3 " )
143+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2 " )
145144
146- implementation(" com.dfsek.terra:base:6.4.1 -BETA+$terraGitHash " )
145+ implementation(" com.dfsek.terra:base:6.6.2 -BETA+$terraGitHash " )
147146
148- implementation(" ca.solo-studios:slf4k:0.5.3 " )
147+ implementation(" ca.solo-studios:slf4k:0.5.4 " )
149148
150- implementation(" ch.qos.logback:logback-classic:1.4.14 " )
149+ implementation(" ch.qos.logback:logback-classic:1.5.18 " )
151150
152- implementation(" com.google.guava:guava:32.1.3 -jre" )
151+ implementation(" com.google.guava:guava:33.4.8 -jre" )
153152
154153 implementation(" no.tornado:tornadofx:1.7.20" ) {
155154 exclude(" org.jetbrains.kotlin" )
156155 }
157156
158- implementation(" commons-io:commons-io:2.15.1 " )
157+ implementation(" commons-io:commons-io:2.19.0 " )
159158
160159 for (javafxModule in javafxModules) {
161160 val mavenCoordinates = " org.openjfx:javafx-$javafxModule :${javafx.version} "
@@ -166,15 +165,15 @@ dependencies {
166165 }
167166
168167 // Jansi for terminal colouring on Windows
169- windowsImplementation(" org.fusesource.jansi:jansi:2.4.1 " )
168+ windowsImplementation(" org.fusesource.jansi:jansi:2.4.2 " )
170169}
171170
172171tasks.test {
173172 useJUnitPlatform()
174173}
175174
176175tasks.withType<KotlinCompile >() {
177- kotlinOptions.jvmTarget = " 17 "
176+ kotlinOptions.jvmTarget = " 21 "
178177}
179178
180179val jar by tasks.jar
@@ -192,12 +191,6 @@ tasks.withType<ShadowJar>() {
192191 configurations.add(project.configurations.runtimeClasspath.orNull)
193192 exclude(" META-INF/INDEX.LIST" , " META-INF/*.SF" , " META-INF/*.DSA" , " META-INF/*.RSA" , " module-info.class" )
194193
195- tasks.register<ConfigureShadowRelocation >(
196- ConfigureShadowRelocation .taskName(this )
197- ) {
198- this @withType.dependsOn(this )
199- }
200-
201194 doFirst {
202195 archiveVersion.set(project.version.toString())
203196 }
@@ -263,7 +256,7 @@ val downloadDefaultPacks: Task by tasks.creating() {
263256 group = " application"
264257
265258 doFirst {
266- val defaultPack = URL (" https://github.com/PolyhedralDev/TerraOverworldConfig/releases/download/latest /default.zip" )
259+ val defaultPack = URL (" https://github.com/PolyhedralDev/TerraOverworldConfig/releases/download/v1.5.1 /default.zip" )
267260 val fileName = defaultPack.file.substring(defaultPack.file.lastIndexOf(" /" ))
268261
269262 file(" $runDir /packs/" ).mkdirs()
0 commit comments