generated from beanbeanjuice/SpigotPluginTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle.kts
88 lines (70 loc) · 2.06 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
86
87
88
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("io.github.goooler.shadow") version("8.1.7")
id("java")
}
allprojects {
group = "com.beanbeanjuice"
apply(plugin = "java")
repositories {
mavenCentral()
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "jitpack"
url = uri("https://jitpack.io")
}
maven {
name = "papermc-repo"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "networkmanager-repo"
url = uri("https://repo.networkmanager.xyz/repository/maven-public/")
}
maven {
name = "spicord-repo"
url = uri("https://repo.spicord.org/")
}
maven {
name = "advanced-ban requirement"
url = uri("https://maven.elmakers.com/repository/")
}
maven {
name = "spigotmc-repo"
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
maven {
name = "placeholder-api-repo"
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
}
dependencies {
// Lombok
compileOnly("org.projectlombok", "lombok", "1.18.32")
annotationProcessor("org.projectlombok", "lombok", "1.18.32")
}
}
subprojects {
apply(plugin = "io.github.goooler.shadow")
tasks.withType<ShadowJar> {
minimize()
archiveClassifier.set("")
archiveBaseName.set(project.name)
destinationDirectory.set(File(rootProject.projectDir, "libs"))
doLast {
archiveVersion.set(project.version as String)
println("Compiling: " + project.name + "-" + project.version + ".jar")
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
}
tasks.clean {
doLast {
file("libs").deleteRecursively()
}
}