-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (31 loc) · 803 Bytes
/
Copy pathbuild.gradle
File metadata and controls
39 lines (31 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import org.apache.tools.ant.filters.ReplaceTokens
group 'com.btk5h.skript-mirror'
version '2.6.3'
def latestJava = 25
def oldestJava = 21
apply plugin: 'java'
repositories {
mavenCentral()
maven { url 'https://repo.papermc.io/repository/maven-public/' }
maven { url 'https://repo.skriptlang.org/releases' }
}
processResources {
filter ReplaceTokens, tokens: [
"version": version
]
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(latestJava))
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.compilerArgs += [
'-source', "${oldestJava}",
'-target', "${oldestJava}"
]
}
dependencies {
compileOnly "io.papermc.paper:paper-api:26.1.2.build.+"
compileOnly "com.github.SkriptLang:Skript:2.15.2"
compileOnly "org.ow2.asm:asm:9.9"
}