-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
36 lines (31 loc) · 781 Bytes
/
build.gradle.kts
File metadata and controls
36 lines (31 loc) · 781 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
plugins {
java
id("com.github.johnrengelman.shadow") version("8.1.1")
id("maven-publish")
}
repositories {
mavenCentral()
maven("https://repo.spongepowered.org/maven/")
maven("https://papermc.io/repo/repository/maven-public/")
}
dependencies {
compileOnly("org.spongepowered:configurate-yaml:4.2.0-SNAPSHOT")
compileOnly("net.kyori:adventure-text-minimessage:4.17.0")
compileOnly("net.kyori:adventure-api:4.17.0")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}