-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
130 lines (119 loc) · 3.75 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
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
buildscript {
repositories {
jcenter()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'kr.entree:spigradle:1.2.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'kr.entree.spigradle'
apply plugin: "com.github.johnrengelman.shadow"
group = "io.github.portlek"
version = "1.0"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
mavenLocal()
jcenter()
spigot()
jitpack()
codemc()
maven {
url = "https://repo.aikar.co/content/groups/aikar/"
}
maven {
url = "https://dl.bintray.com/portlek/maven"
}
maven {
url = "http://repo.extendedclip.com/content/repositories/placeholderapi/"
}
maven {
url = "http://pex-repo.aoeu.xyz"
}
}
dependencies {
// Tools
implementation("co.aikar:acf-bukkit:0.5.0-SNAPSHOT")
implementation("io.github.portlek:configs-bukkit:1.0")
implementation("io.github.portlek:mc-json:1.4")
// Inventory Library is from local maven repository(for now)
// Visit https://github.com/MinusKube/SmartInvs/tree/1.3.0
// Clone it and run `gradlew clean build` command without
// `signing` and `uploadArchives` tasks on the build.gradle
// If 1.3.0 was released you don't have to do that.
implementation("fr.minuskube.inv:smart-invs:1.3.0")
// Other Stuffs
compileOnly("org.jetbrains:annotations:19.0.0")
// Main
compileOnly bukkit()
// Hooks
compileOnly("me.clip:placeholderapi:2.10.4")
compileOnly("org.anjocaido:groupmanagerx:2.2-SNAPSHOT")
compileOnly("ru.tehkode:PermissionsEx:1.23.5-SNAPSHOT")
compileOnly luckPerms()
}
shadowJar {
relocate('co.aikar.commands', this.group + ".jsonmessage.commands")
relocate('io.github.portlek.configs', this.group + ".jsonmessage.file")
minimize()
setArchivesBaseName(this.name)
archiveClassifier.set("")
archiveVersion.set("")
}
spigot {
description = "JsonMessage plugin for Bukkit on Java with Gradle."
apiVersion = "1.13"
authors = ["portlek"]
softDepends = ["GroupManager", "LuckPerms", "PermissionsEx", "PlaceholderAPI"]
commands {
jsonmessage {
description = 'Main command of the plugin.'
permission = 'jsonmessage.command.main'
permissionMessage = 'You do not have permission!'
usage = '/<command> [help|reload|version]'
aliases = ['jm']
}
farbe {
description = 'Farbe command of the plugin.'
permission = 'jsonmessage.command.farbe'
permissionMessage = 'You do not have permission!'
usage = '/<command>'
}
}
permissions {
'jsonmessage.*' {
description = 'Allows you to access to the all plugin.'
defaults = 'op'
children = [
'jsonmessage.command.*': true
]
}
'jsonmessage.command.*' {
description = 'It allows you to use to all commands of the plugin.'
defaults = 'op'
children = [
'jsonmessage.command.help' : true,
'jsonmessage.command.reload' : true
]
}
'jsonmessage.command.main' {
description = 'It allows you to use `/jsonmessage` command.'
defaults = 'true'
}
'jsonmessage.command.help' {
description = 'It allows you to use to `/jsonmessage help` command.'
defaults = 'true'
}
'jsonmessage.command.reload' {
description = 'It allows you to use to `/jsonmessage reload` command.'
defaults = 'op'
}
}
}