This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
100 lines (74 loc) · 2.22 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.2"
}
}
apply plugin: 'java'
apply plugin: "com.github.johnrengelman.shadow"
ext {
pluginVersion = '1.0'
}
group 'br.com.syrxcraft'
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name = 'papermc'
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven {
name = 'jitpack'
url = 'https://jitpack.io'
}
maven {
name = 'placeholderapi'
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
name = 'sk89q'
url = 'http://maven.sk89q.com/repo/'
}
}
dependencies {
compileOnly 'com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
compileOnly 'org.bukkit:bukkit:1.12.2-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.10.6'
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:6.1.5'
compileOnly 'com.sk89q.worldedit:worldedit-core:6.0.0-SNAPSHOT'
compileOnly 'net.kyori:text-api:3.0.3'
compileOnly 'net.kyori:text-serializer-plain:3.0.3'
compileOnly 'net.kyori:event-api:3.0.0'
compileOnly 'net.kyori:event-method:3.0.0'
compileOnly "com.flowpowered:flow-math:1.0.3"
compileOnly 'com.github.bloodmc:GriefDefenderAPI:master-SNAPSHOT'
compile "io.papermc:paperlib:1.0.3"
compile files('libs/Yamler-Core-2.4.0-SNAPSHOT.jar')
compileOnly fileTree(dir: "libs", include: "*.jar")
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar.finalizedBy shadowJar
shadowJar {
relocate 'io.papermc.lib', 'br.com.brunoxkk0.betterskyblock.paperlib'
relocate 'net.cubespace.Yamler.Config', 'br.com.brunoxkk0.betterskyblock.yamlerlib'
}
processResources {
from(sourceSets.main.resources){
include 'plugin.yml'
filter {
line -> line.replaceAll("@VERSION@", pluginVersion)
}
}
}