forked from P1otrulla/ptrlTimeShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
134 lines (112 loc) · 3.69 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java-library")
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
id("xyz.jpenilla.run-paper") version "1.0.6"
}
group = "cc.dreamcode"
version = "1.0.3"
val mainPackage = "cc.dreamcode.timeshop"
repositories {
gradlePluginPortal()
mavenCentral()
mavenLocal()
maven { url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/") }
maven { url = uri("https://storehouse.okaeri.eu/repository/maven-public") }
maven { url = uri("https://papermc.io/repo/repository/maven-public/")}
maven { url = uri("https://repository.minecodes.pl/releases") }
maven { url = uri("https://repository.minecodes.pl/snapshots") }
maven { url = uri("https://repo.panda-lang.org/releases") }
maven { url = uri("https://repo.dreamcode.cc/releases") }
}
dependencies {
// =-- Okaeri --=
// configuration
implementation("eu.okaeri:okaeri-configs-yaml-bukkit:4.0.6")
implementation("eu.okaeri:okaeri-configs-serdes-bukkit:4.0.6")
implementation("eu.okaeri:okaeri-configs-serdes-commons:4.0.6")
implementation("eu.okaeri:okaeri-configs-json-simple:4.0.6")
// pluarlize
implementation("eu.okaeri:okaeri-pluralize:1.1.0")
// persistence
implementation ("eu.okaeri:okaeri-persistence-flat:2.0.0-beta.1")
implementation ("eu.okaeri:okaeri-persistence-jdbc:2.0.0-beta.1")
implementation ("eu.okaeri:okaeri-persistence-redis:2.0.0-beta.1")
implementation ("eu.okaeri:okaeri-persistence-mongo:2.0.0-beta.1")
// =-- dreamcode --=
// notice
implementation("cc.dreamcode.notice:minecraft:1.3.3")
implementation("cc.dreamcode.notice:bukkit:1.3.3")
implementation("cc.dreamcode.notice:bukkit-serdes:1.3.3")
// menu
implementation("cc.dreamcode.menu:core:1.0.13")
implementation("cc.dreamcode.menu:bukkit:1.0.13")
implementation("cc.dreamcode.menu:bukkit-serdes:1.0.13")
// =-- Others --=
// bStats
implementation("org.bstats:bstats-bukkit:3.0.0")
// engine
compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT")
// command framework
implementation ("dev.rollczi.litecommands:bukkit:2.7.0")
// placeholders
compileOnly("me.clip:placeholderapi:2.11.2")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
bukkit {
main = "$mainPackage.TimeShopPlugin"
apiVersion = "1.13"
prefix = "dreamTimeShop"
author = "Piotrulla"
name = "dreamTimeShop"
version = "${project.version}"
description = "DreamCode.cc - https://discord.gg/dreamcode"
softDepend = listOf("PlaceholderAPI")
}
tasks.withType<JavaCompile> {
options.compilerArgs = listOf("-Xlint:deprecation")
options.encoding = "UTF-8"
}
tasks {
runServer {
minecraftVersion("1.17.1")
}
}
tasks.withType<ShadowJar> {
archiveFileName.set("dreamTimeShop-${project.version} (MC 1.8-1.19).jar")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"org/checkerframework/**",
"META-INF/**",
"javax/**",
)
mergeServiceFiles()
minimize()
val prefix = "$mainPackage.libs"
listOf(
"org.bstats",
"eu.okaeri",
"net.kyori",
"cc.dreamcode.utilities",
"cc.dreamcode.notice",
"cc.dreamcode.menu",
"org.bstats",
"com.mongodb",
"com.zaxxer",
"dev.rollczi",
"io.lettuce",
"io.netty",
"org.bson",
"org.json",
"org.slf4j",
"org.reactivestreams",
"panda",
"reactor"
).forEach { pack ->
relocate(pack, "$prefix.$pack")
}
}