31 lines
641 B
Groovy
31 lines
641 B
Groovy
![]() |
plugins {
|
||
|
id 'java'
|
||
|
id 'application'
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation 'com.google.code.gson:gson:2.11.0'
|
||
|
}
|
||
|
|
||
|
java {
|
||
|
toolchain {
|
||
|
languageVersion = JavaLanguageVersion.of(21)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
application {
|
||
|
mainClass = 'com.ncguy.achievements.Crafter'
|
||
|
}
|
||
|
|
||
|
// Swing is part of the JDK; no extra dependencies required.
|
||
|
|
||
|
tasks.withType(JavaCompile).configureEach {
|
||
|
options.encoding = 'UTF-8'
|
||
|
options.release.set(21)
|
||
|
}
|
||
|
|
||
|
run.jvmArgs += ["--add-opens", "java.base/java.io=ALL-UNNAMED", "--add-opens", "java.base/sun.nio.cs=ALL-UNNAMED", "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED"]
|