forked from EnvoysDev/Envoys
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
104 lines (88 loc) · 4.34 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
kotlin("jvm") version "1.5.20"
java
id("maven-publish")
id("com.github.johnrengelman.shadow") version "7.0.0"
}
group = "com.perkelle.dev.envoys"
version = "5.7.0"
sourceSets.main {
java.srcDirs("src/main/java", "src/main/kotlin")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
mavenLocal()
maven(url = "https://jitpack.io")
maven(url = "https://repo.codemc.org/repository/maven-public/")
maven(url = "https://papermc.io/repo/repository/maven-public/")
maven(url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots")
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
maven(url = "https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven(url = "https://maven.sk89q.com/repo")
maven(url = "https://libraries.minecraft.net")
maven(url = "https://papermc.io/repo/repository/maven-public/")
}
dependencies {
//implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
compileOnly(kotlin("stdlib"))
implementation("com.github.Dot-Rar:DependencyManager:1.0.8")
implementation("org.bstats:bstats-bukkit:2.2.1")
// nexus repos
implementation("org.codemc.worldguardwrapper:worldguardwrapper:1.1.6-SNAPSHOT")
implementation("de.tr7zw:item-nbt-api-plugin:2.8.0")
implementation("io.papermc:paperlib:1.0.6")
//compile "org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT"
//compileOnly("io.papermc.paper:paper-api:1.17-R0.1-SNAPSHOT")
compileOnly("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.8.2")
compileOnly("com.gmail.filoghost.holographicdisplays:holographicdisplays-api:2.4.0")
compileOnly("com.github.TechFortress:GriefPrevention:16.7.1") {
exclude("com.sk89q.worldedit", "worldedit-bukkit")
exclude("com.sk89q", "worldguard")
exclude("org.bukkit", "bukkit")
}
compileOnly("rhino:js:1.7R2")
compileOnly("org.json:json:20190722")
compileOnly("xyz.xenondevs:particle:1.5.1")
compileOnly("me.lucko:commodore:1.7")
compileOnly("org.apache.httpcomponents:fluent-hc:4.5.13")
compileOnly("org.apache.commons:commons-math3:3.6.1")
}
tasks {
build {
dependsOn(fatJar)
}
}
val fatJar by tasks.registering(ShadowJar::class) {
dependsOn("jar")
val jar = tasks.named("jar")
exclude("META-INF/**")
exclude("proguard_map.txt")
exclude("proguard_seeds.txt")
exclude("module-info.class")
exclude("LICENSE")
configurations = listOf(project.configurations.runtimeClasspath.get())
archiveBaseName.set("Envoys")
//relocate("kotlin", "com.perkelle.dev.envoys.dependencies.kotlin")
//relocate("org.jetbrains.kotlin", "com.perkelle.dev.envoys.dependencies.org.jetbrains.kotlin")
//relocate("org.json", "com.perkelle.dev.envoys.dependencies.org.json")
relocate("org.codemc.worldguardwrapper", "com.perkelle.dev.envoys.dependencies.org.codemc.worldguardwrapper")
relocate("com.github.CodeMC", "com.perkelle.dev.envoys.dependencies.com.github.CodeMC")
relocate("org.bstats", "com.perkelle.dev.envoys.dependencies.org.bstats")
//relocate("org.intellij.lang.annotations", "com.perkelle.dev.envoys.dependencies.org.intellij.lang.annotations")
//relocate("org.jetbrains.annotations", "com.perkelle.dev.envoys.dependencies.org.jetbrains.annotations")
//relocate("xyz.xenondevs", "com.perkelle.dev.envoys.dependencies.xyz.xenondevs")
relocate("de.tr7zw", "com.perkelle.dev.envoys.dependencies.de.tr7zw")
relocate("me.lucko.jarrelocator", "com.perkelle.dev.envoys.dependencies.me.lucko.jarrelocator")
//relocate("org.apache.httpcomponents", "com.perkelle.dev.envoys.dependencies.org.apache.httpcomponents")
//relocate("commons-codec", "com.perkelle.dev.envoys.dependencies.commons-codec")
//relocate("commons-logging", "com.perkelle.dev.envoys.dependencies.commons-logging")
relocate("io.papermc", "com.perkelle.dev.envoys.dependencies.io.papermc")
//relocate("org.apache.commons.math3", "com.perkelle.dev.envoys.dependencies.org.apache.commons.math3")
}