-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (54 loc) · 1.65 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'net.minecrell.plugin-yml.bukkit' version '0.5.1'
}
group 'com.nextplugins'
version '1.0.7'
repositories {
mavenCentral()
mavenLocal()
// spigot
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
// libs
maven { url = 'https://repo.codemc.org/repository/maven-public' }
maven { url = 'https://jitpack.io/' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
implementation 'com.github.HenryFabio:configuration-injector:main-SNAPSHOT'
implementation 'org.bstats:bstats-bukkit:1.8'
def lombok = 'org.projectlombok:lombok:1.18.24'
compileOnly lombok
annotationProcessor lombok
}
bukkit {
main = 'com.nextplugins.sorteios.NextSorteios'
authors = ['Henry_Fabio', 'Eike', 'Gabriel Santos', 'Yuhtin']
website = 'https://github.com/NextPlugins'
apiVersion = '1.18'
version = "${project.version}"
commands {
sortear {
description = 'Sortear algum prêmio aleatório'
aliases = ['sorteio']
permission = 'nextsorteios.sort'
}
}
}
tasks {
build {
dependsOn 'shadowJar'
}
}
shadowJar {
archiveName("${project.name}-${project.version}.jar")
relocate 'com.henryfabio.minecraft.configinjector', 'com.nextplugins.sorteios.libs.configinjector'
relocate 'org.bstats', 'com.nextplugins.sorteios.libs.bstats'
}
compileJava {
options.encoding('UTF-8')
sourceCompatibility('1.8')
targetCompatibility('1.8')
}