-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (57 loc) · 1.81 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
allprojects {
apply(plugin = "java-library")
group = "enterprises.stardust"
version = "0.0.7"
repositories {
mavenCentral()
maven("https://maven.minecraftforge.net/") {
content {
includeGroup("cpw.mods")
}
}
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
content {
includeGroup("org.spigotmc")
includeGroup("org.test")
}
}
maven("https://jitpack.io/") {
content {
includeGroup("com.github.xtrm-en")
}
}
maven("https://maven.mohistmc.com/") {
content {
includeGroup("com.mohistmc")
}
}
}
val shade by configurations.creating {
val implementation by configurations
implementation.extendsFrom(this)
}
dependencies {
"implementation"("org.jetbrains", "annotations", "24.0.1")
// javadoc breaks without this apparently
"implementation"("com.google.code.findbugs", "jsr305", "3.0.2")
"implementation"("cpw.mods", "modlauncher", "8.1.3")
"implementation"("org.spigotmc", "spigot-api", "1.16.+")
if (project == rootProject) {
"implementation"("com.mohistmc", "mohistdev", "1.16.5")
"implementation"("org.apache.logging.log4j", "log4j-core", "2.14.1")
"shade"("com.github.xtrm-en", "deencapsulation", "42b829f373")
}
}
configure<JavaPluginExtension> {
withJavadocJar()
withSourcesJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
tasks {
getByName<Jar>("jar") {
from(shade.map { if (it.isDirectory) it else zipTree(it) })
}
}
}