-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (47 loc) · 1.41 KB
/
build.gradle
File metadata and controls
58 lines (47 loc) · 1.41 KB
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
plugins {
id("ru.endlesscode.bukkitgradle") version "0.10.0"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
group = "com.example"
description = "My Bukkit plugin with Discord Reporter"
version = "0.1-SNAPSHOT"
// Read more about BukkitGradle: https://github.com/EndlessCodeGroup/BukkitGradle
bukkit {
apiVersion = "1.17.1"
meta {
name.set("MyPlugin")
url.set("https://www.example.com")
authors.set(["osipxd"])
}
server {
core = "spigot"
eula = true
}
}
shadowJar {
minimize()
// Exclude dependencies bundled into Spigot from resulting JAR
dependencies {
exclude(dependency("com.google.code.gson:gson:.*"))
exclude(dependency("org.jetbrains:annotations:.*"))
}
}
// Here we use automatic relocation
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "shadow.com.example.myplugin"
}
tasks.shadowJar.dependsOn tasks.relocateShadowJar
tasks.assemble.dependsOn tasks.shadowJar
ext.inspectorVerson = "0.12.1"
dependencies {
compileOnly(spigotApi()) {
transitive = false
}
implementation "ru.endlesscode.inspector:inspector-bukkit:$inspectorVerson"
implementation "ru.endlesscode.inspector:inspector-discord-reporter:$inspectorVerson"
}
repositories {
mavenCentral()
}