forked from Bobcat00/PlotMarkers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (49 loc) · 1.4 KB
/
build.gradle
File metadata and controls
58 lines (49 loc) · 1.4 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
plugins {
id "java"
id "com.gradleup.shadow" version "9.3.2"
}
group = "com.bobcat00"
version = "2.01-SNAPSHOT"
description = "Add PlotSquared plot markers to BlueMap"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
dependencies {
compileOnly "io.papermc.paper:paper-api:26.1.2.build.52-beta"
compileOnly "com.intellectualsites.plotsquared:plotsquared-core:7.5.12"
compileOnly "com.sk89q.worldedit:worldedit-core:7.4.0"
compileOnly "de.bluecolored:bluemap-api:2.7.8"
implementation "com.technicjelle:BMUtils:5.0.1"
implementation "org.bstats:bstats-bukkit:3.1.0"
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.release.set(25)
}
tasks.named("processResources") {
def props = [version: project.version]
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}
tasks.named("jar") {
archiveClassifier.set("thin")
manifest {
attributes("paperweight-mappings-namespace": "mojang")
}
}
tasks.named("shadowJar") {
archiveClassifier.set("")
relocate "com.technicjelle", "com.bobcat00.plotmarkers.technicjelle"
relocate "org.bstats", "com.bobcat00.plotmarkers.bstats"
manifest {
attributes("paperweight-mappings-namespace": "mojang")
}
}
tasks.named("build") {
dependsOn(tasks.named("shadowJar"))
}