-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
41 lines (36 loc) · 830 Bytes
/
build.gradle.kts
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
40
41
plugins {
java
alias(libs.plugins.runvelocity)
alias(libs.plugins.idea.ext)
alias(libs.plugins.blossom)
}
repositories {
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly(libs.velocity)
annotationProcessor(libs.velocity)
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
clean {
// Deletes the directory that is generated by the runVelocity plugin
delete("run")
}
runVelocity {
velocityVersion(libs.versions.velocity.get())
}
}
sourceSets {
main {
blossom {
javaSources {
property("version", project.version.toString())
}
}
}
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))