-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
52 lines (43 loc) · 1.05 KB
/
build.gradle.kts
File metadata and controls
52 lines (43 loc) · 1.05 KB
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
42
43
44
45
46
47
48
49
50
51
52
plugins {
java
`maven-publish`
}
group = "net.mrcappy"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
// Only Paper API, no external shit
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
// Rhino for JavaScript packet filters - we bundle this
implementation("org.mozilla:rhino:1.7.14")
// Gson for webhook logging - also bundled
implementation("com.google.code.gson:gson:2.10.1")
}
java {
// Use Java 21
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
processResources {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}