-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle.kts
89 lines (78 loc) · 2.78 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
89
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "dev.aurelium"
version = project.property("projectVersion") as String
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://maven.enginehub.org/repo/")
maven("https://repo.aikar.co/content/groups/aikar/")
maven("https://mvn.lumine.io/repository/maven-public/")
}
dependencies {
implementation("net.objecthunter:exp4j:0.4.8")
implementation("com.github.Archy-X:Polyglot:1.2.1") {
exclude("org.yaml", "snakeyaml")
}
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
implementation("org.bstats:bstats-bukkit:3.0.2")
compileOnly("dev.aurelium:auraskills-api-bukkit:2.2.0")
compileOnly("org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.7-SNAPSHOT")
compileOnly("io.lumine:Mythic-Dist:5.6.1")
}
tasks.withType<ShadowJar> {
val projectVersion: String by project
archiveFileName.set("AuraMobs-${projectVersion}.jar")
relocate("co.aikar.commands", "dev.aurelium.auramobs.acf")
relocate("co.aikar.locales", "dev.aurelium.auramobs.locales")
relocate("com.archyx.polyglot", "dev.aurelium.auramobs.polyglot")
relocate("org.bstats", "dev.aurelium.auramobs.bstats")
relocate("net.kyori", "dev.aurelium.auramobs.kyori")
relocate("net.objecthunter.exp4j", "dev.aurelium.auramobs.exp4j")
relocate("org.spongepowered.configurate", "dev.aurelium.auramobs.configurate")
relocate("io.leangen.geantyref", "dev.aurelium.auramobs.geantyref")
}
java.sourceCompatibility = JavaVersion.VERSION_17
tasks {
processResources {
filesMatching("plugin.yml") {
expand("projectVersion" to project.version)
}
}
build {
dependsOn(shadowJar)
}
assemble {
dependsOn(shadowJar)
}
javadoc {
options {
(this as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet")
}
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
options.isFork = true
options.forkOptions.executable = "javac"
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "com.github.Archy-X"
artifactId = "AuraMobs"
version = project.property("projectVersion") as String
from(components["java"])
}
}
}