-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
85 lines (72 loc) · 2.55 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
`java-library`
alias(libs.plugins.pluginyml)
alias(libs.plugins.shadow)
alias(libs.plugins.minotaur)
}
the<JavaPluginExtension>().toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
configurations.all {
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
}
tasks.compileJava.configure {
options.release.set(17)
}
version = "7.0.1-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
maven { url = uri("https://repo.mikeprimm.com/") }
maven { url = uri("https://maven.enginehub.org/repo/") }
}
dependencies {
implementation(platform("com.intellectualsites.bom:bom-newest:1.47"))
compileOnly("com.intellectualsites.plotsquared:plotsquared-core") {
exclude(group = "worldedit-core")
}
compileOnly("io.papermc.paper:paper-api")
compileOnly(libs.worldedit)
compileOnly(libs.dynmapCore) { isTransitive = false }
compileOnly(libs.dynmapApi) { isTransitive = false }
implementation("org.bstats:bstats-bukkit")
implementation("org.bstats:bstats-base")
}
tasks.named<ShadowJar>("shadowJar") {
archiveClassifier.set(null as String?)
dependencies {
relocate("org.bstats", "com.plotsquared.plot2dynmap.metrics")
}
}
bukkit {
name = "Plot2Dynmap"
main = "com.plotsquared.plot2dynmap.Plot2DynmapPlugin"
authors = listOf("Empire92", "NotMyFault", "dordsor21")
apiVersion = "1.20"
description = "This plugin adds a marker around claimed PlotSquared plots in the dynmap interface"
version = rootProject.version.toString()
depend = listOf("PlotSquared", "dynmap")
website = "https://www.spigotmc.org/resources/1292/"
}
tasks.named("build").configure {
dependsOn("shadowJar")
}
val supportedVersions = listOf("1.20", "1.20.1")
modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("plot2dynmap")
versionName.set("${project.version}")
versionNumber.set("${project.version}")
versionType.set("release")
uploadFile.set(file("build/libs/${rootProject.name}-${project.version}.jar"))
gameVersions.addAll(supportedVersions)
loaders.addAll(listOf("paper", "purpur", "spigot"))
syncBodyFrom.set(rootProject.file("README.md").readText())
changelog.set("The changelog is available on GitHub: https://github" +
".com/IntellectualSites/Plot2Dynmap/releases/tag/${project.version}")
dependencies {
required.project("dynmap")
}
}