-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
73 lines (58 loc) · 1.68 KB
/
build.gradle.kts
File metadata and controls
73 lines (58 loc) · 1.68 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
`java-library`
id("com.gradleup.shadow") version("9.3.1")
id("xyz.jpenilla.run-paper") version("3.0.2")
}
group = "org.lushplugins"
version = "1.0.1"
repositories {
mavenLocal()
mavenCentral()
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.papermc.io/repository/maven-public/") // Paper
maven("https://repo.lushplugins.org/snapshots/") // LushLib
maven("https://repo.bluecolored.de/releases") // BlueMap
}
dependencies {
// Dependencies
compileOnly("io.papermc.paper:paper-api:1.21.7-R0.1-SNAPSHOT")
// Soft Dependencies
compileOnly("de.bluecolored:bluemap-api:2.7.8")
compileOnly("de.bluecolored:bluemap-common:5.16")
// Libraries
implementation("org.lushplugins:LushLib:1.0.0")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
registerFeature("optional") {
usingSourceSet(sourceSets["main"])
}
withSourcesJar()
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}
shadowJar {
minimize()
archiveFileName.set("${project.name}-${project.version}.jar")
}
processResources{
filesMatching("plugin.yml") {
expand(project.properties)
}
inputs.property("version", rootProject.version)
filesMatching("plugin.yml") {
expand("version" to rootProject.version)
}
}
runServer {
minecraftVersion("1.21.11")
downloadPlugins {
modrinth("bluemap", "5.16-paper")
modrinth("viaversion", "5.7.1")
modrinth("viabackwards", "5.7.1")
}
}
}