-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (74 loc) · 2.45 KB
/
build.gradle
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
plugins {
id("java-library")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("checkstyle")
}
group = "com.github.imdmk.automessage"
version = "1.0.1"
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url = "https://storehouse.okaeri.eu/repository/maven-public/" }
maven { url = "https://repo.panda-lang.org/releases" }
maven { url = "https://repo.eternalcode.pl/releases" }
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
implementation("eu.okaeri:okaeri-configs-yaml-snakeyaml:5.0.0-beta.5")
implementation("eu.okaeri:okaeri-configs-serdes-commons:5.0.0-beta.5")
implementation("net.kyori:adventure-platform-bukkit:4.3.1")
implementation("net.kyori:adventure-text-minimessage:4.14.0")
implementation("dev.rollczi.litecommands:core:2.8.9")
implementation("dev.rollczi.litecommands:bukkit-adventure:2.8.9")
implementation("com.eternalcode:gitcheck:1.0.0")
implementation("org.bstats:bstats-bukkit:3.0.2")
testImplementation platform("org.junit:junit-bom:5.10.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
}
test {
useJUnitPlatform()
}
checkstyle {
toolVersion = "10.12.1"
configFile = file("checkstyle.xml")
}
bukkit {
name = "AutoMessage"
version = "${project.version}"
apiVersion = "1.17"
main = "com.github.imdmk.automessage.AutoMessagePlugin"
author = "DMK"
description = "Simple auto message plugin"
website = "https://github.com/imDMK/AutoMessage"
}
shadowJar {
archiveFileName.set("${project.name} v${project.version}.jar")
dependsOn("checkstyleMain")
dependsOn("checkstyleTest")
dependsOn("test")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"META-INF/**",
)
def prefix = "com.github.imdmk.automessage.lib"
[
"eu.okaeri",
"net.kyori",
"dev.rollczi",
"com.eternalcode",
"org.bstats",
"org.yaml",
"panda.std",
"org.json.simple",
].each { lib ->
relocate(lib, "${prefix}.${lib}")
}
}