-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
113 lines (93 loc) · 3.41 KB
/
build.gradle.kts
File metadata and controls
113 lines (93 loc) · 3.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
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
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.minecrell.plugin-yml.bukkit") version "0.5.1" // Generates plugin.yml
}
group = "com.heroslender"
version = "4.6.2"
description = "HeroSpawners"
repositories {
mavenLocal()
mavenCentral()
maven("https://nexus.heroslender.com/repository/maven-public/")
maven("https://repo.maven.apache.org/maven2/")
maven("https://jitpack.io")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://repo.dustplanet.de/artifactory/libs-release-local")
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.28")
annotationProcessor("org.projectlombok:lombok:1.18.28")
compileOnly("org.jetbrains:annotations:19.0.0")
implementation("org.apache.commons:commons-lang3:3.10")
implementation("com.zaxxer:HikariCP:3.4.5")
implementation("org.apache.logging.log4j:log4j-core:2.17.1")
compileOnly("org.xerial:sqlite-jdbc:3.28.0")
compileOnly("com.github.decentsoftware-eu:decentholograms:2.3.1")
compileOnly("uk.antiperson.stackmob:StackMob:5.5.4")
compileOnly("com.gmail.filoghost.holographicdisplays:holographicdisplays-api:2.4.0")
compileOnly("de.dustplanet:silkspawners:7.4.0") {
exclude(group = "org.spigotmc")
exclude(group = "com.sk89q")
exclude(group = "com.massivecraft.massivecore")
exclude(group = "com.massivecraft.factions")
exclude(group = "net.gravitydevelopment.updater")
}
compileOnly(fileTree("Libs"))
compileOnly("org.spigotmc:spigot:1.8.8-R0.1-SNAPSHOT")
}
java {
withJavadocJar()
withSourcesJar()
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
// Configure plugin.yml generation
bukkit {
main = "com.heroslender.herospawners.HeroSpawners"
authors = listOf("Heroslender")
version = project.version.toString()
apiVersion = "1.13"
name = "HeroSpawners"
description = "Plugin de juntar os itens dropados"
website = "https://www.heroslender.com/"
softDepend =
listOf("HolographicDisplays", "MobStacker2", "SilkSpawners", "Multiverse-Core", "MultiWorld", "StackMob", "JH_StackMobs")
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD
commands {
create("herospawners")
create("spawners") {
usage = "§cUso correto: §7/<command> <player> [entity] [stack size] [multiplier]"
}
}
permissions {
create("herospawners.admin") {
description = "Admin permissions to the plugin"
default = BukkitPluginDescription.Permission.Default.OP
children = listOf("herospawners.break.others")
}
create("herospawners.break.others") {
description = "Permission to break spawners the player does not own but is allowed by the region plugin."
default = BukkitPluginDescription.Permission.Default.TRUE
}
}
}