-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
91 lines (75 loc) · 2.14 KB
/
build.gradle.kts
File metadata and controls
91 lines (75 loc) · 2.14 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
* This file was generated by the Gradle 'init' task.
*/
import org.gradle.language.jvm.tasks.ProcessResources
plugins {
`java-library`
`maven-publish`
id("io.github.goooler.shadow") version "8.1.8"
}
repositories {
mavenLocal()
maven {
url = uri("https://repo.codemc.org/repository/maven-public/")
}
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://www.iani.de/nexus/content/repositories/snapshots/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}
dependencies {
api(libs.de.janschuri.lunaticlib.paper)
api(libs.de.rapha149.signgui)
api(libs.com.jeff.media.custom.block.data)
api(libs.fr.skytasul.glowingentities)
api(libs.org.json.json)
implementation(libs.org.bstats.bstats.bukkit)
compileOnly(libs.io.papermc.paper.paper.api)
compileOnly(libs.de.diddiz.logblock)
}
group = "de.janschuri"
version = "1.1.10-SNAPSHOT"
description = "LunaticStorage"
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks {
build {
dependsOn(shadowJar)
}
jar {
enabled = false
}
shadowJar {
archiveBaseName.set("LunaticStorage")
archiveClassifier.set("")
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
}
tasks.named<ProcessResources>("processResources") {
val v = version.toString() // plain String, captured safely
inputs.property("pluginVersion", v)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(mapOf("version" to v))
}
}
tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
relocate("org.bstats", "de.janschuri.lunaticstorage.libs.bstats")
relocate("com.jeff_media.customblockdata", "de.janschuri.lunaticstorage.libs.customblockdata")
relocate("de.janschuri.lunaticlib", "de.janschuri.lunaticstorage.libs.lunaticlib")
}