Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
66 lines (59 loc) · 1.55 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
66 lines (59 loc) · 1.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
plugins {
java
id("xyz.jpenilla.run-paper") version "2.3.1"
}
group = "de.steyon"
version = "1.0.1"
repositories {
mavenCentral()
maven {
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "jitpack.io"
url = uri("https://jitpack.io")
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "sonatype-snapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
compileOnly("org.projectlombok:lombok:1.18.36")
compileOnly(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
annotationProcessor("org.projectlombok:lombok:1.18.36")
}
// Configure run-paper task
tasks {
// Accessor should be generated by the plugin
runServer {
minecraftVersion("1.21.8")
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
// Java compile options
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release.set(21)
}
// Resource processing (expand plugin.yml version)
tasks.processResources {
val props = mapOf("version" to project.version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}