blob: a29bc340293741afba54e400b0c36a3d34beacdc (
plain) (
blame)
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
|
plugins {
java
id("io.papermc.paperweight.userdev") version "2.0.0-beta.19"
id("xyz.jpenilla.run-paper") version "2.3.1"
}
group = "eu.projnull.spelis"
version = "1.0"
val targetJavaVersion = 21
java {
val javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion.set(JavaLanguageVersion.of(targetJavaVersion))
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible) {
options.release.set(targetJavaVersion)
}
}
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "henkelmax.public"
url = uri("https://maven.maxhenkel.de/repository/public")
}
mavenLocal()
}
dependencies {
paperweight.paperDevBundle("1.21.11-R0.1-SNAPSHOT")
implementation("de.maxhenkel.voicechat:voicechat-api:2.6.0")
implementation("com.googlecode.soundlibs:mp3spi:1.9.5.4")
implementation("com.googlecode.soundlibs:vorbisspi:1.0.3.3")
implementation("com.googlecode.soundlibs:tritonus-share:0.3.7.4")
implementation("com.google.code.findbugs:jsr305:3.0.2")
implementation("com.google.code.gson:gson:2.10.1")
}
tasks.processResources {
val props = mapOf(
"version" to "1.0",
"bukkit_api_version" to "1.21.11"
)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}
|