File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import org.apache.tools.ant.filters.ReplaceTokens
33group ' com.btk5h.skript-mirror'
44version ' 2.6.3'
55
6+ def latestJava = 25
7+ def oldestJava = 21
8+
69apply plugin : ' java'
710
811repositories {
@@ -18,14 +21,19 @@ processResources {
1821}
1922
2023java {
21- toolchain. languageVersion. set(JavaLanguageVersion . of(21 ))
24+ toolchain. languageVersion. set(JavaLanguageVersion . of(latestJava ))
2225}
2326
2427tasks. withType(JavaCompile ). configureEach {
2528 options. encoding = ' UTF-8'
29+ options. compilerArgs + = [
30+ ' -source' , " ${ oldestJava} " ,
31+ ' -target' , " ${ oldestJava} "
32+ ]
2633}
2734
2835dependencies {
29- compileOnly group : ' io.papermc.paper' , name : ' paper-api' , version : ' 1.21.10-R0.1-SNAPSHOT'
30- compileOnly group : ' com.github.SkriptLang' , name : ' Skript' , version : ' 2.14.0'
36+ compileOnly " io.papermc.paper:paper-api:26.1.2.build.+"
37+ compileOnly " com.github.SkriptLang:Skript:2.15.2"
38+ compileOnly " org.ow2.asm:asm:9.9"
3139}
You can’t perform that action at this time.
0 commit comments