-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
47 lines (37 loc) · 975 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
42
43
44
45
46
47
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "8.0.0"
id("xyz.jpenilla.run-paper") version "2.0.1"
}
group = "dev.kugge"
version = "0.0.1"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
repositories {
mavenLocal()
mavenCentral()
maven("https://jitpack.io")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://papermc.io/repo/repository/maven-public/")
}
dependencies {
compileOnly("dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT")
compileOnly("com.github.BlueMap-Minecraft:BlueMapAPI:v2.4.0")
}
tasks.compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
tasks.processResources {
filter { line -> line.replace("\${version}", project.version.toString()) }
}
tasks.shadowJar {
archiveFileName.set("SignMarkers-${project.version}.jar")
}
tasks.jar {
enabled = false
}
tasks.assemble {
dependsOn(tasks.shadowJar)
}