Skip to content

Commit 92ce8cd

Browse files
committed
Bump Java, Paper and Skript
1 parent 6ff88d8 commit 92ce8cd

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

build.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import org.apache.tools.ant.filters.ReplaceTokens
33
group 'com.btk5h.skript-mirror'
44
version '2.6.3'
55

6+
def latestJava = 25
7+
def oldestJava = 21
8+
69
apply plugin: 'java'
710

811
repositories {
@@ -18,14 +21,19 @@ processResources {
1821
}
1922

2023
java {
21-
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
24+
toolchain.languageVersion.set(JavaLanguageVersion.of(latestJava))
2225
}
2326

2427
tasks.withType(JavaCompile).configureEach {
2528
options.encoding = 'UTF-8'
29+
options.compilerArgs += [
30+
'-source', "${oldestJava}",
31+
'-target', "${oldestJava}"
32+
]
2633
}
2734

2835
dependencies {
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
}

0 commit comments

Comments
 (0)