This repository has been archived by the owner on Dec 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathbuild.gradle
59 lines (49 loc) · 1.8 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
import java.text.SimpleDateFormat
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '4.0.4'
}
configurations {
group = 'me.arasple.mc.trchat'
version = '1.71'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
defaultTasks 'buildJar'
}
task buildJar(dependsOn: [clean, shadowJar])
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "http://ptms.ink:8081/repository/codemc-nms/" }
maven { url "http://ptms.ink:8081/repository/maven-releases/" }
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://repo.codemc.org/repository/maven-public" }
maven { url "http://repo.extendedclip.com/content/repositories/placeholderapi/" }
maven { url "https://jitpack.io" }
mavenCentral()
}
dependencies {
compile 'org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT'
compile 'org.bstats:bstats-bukkit:1.7'
compile 'io.izzel.taboolib:TabooLib:5.17:all'
compile 'io.izzel.taboolib.loader:TabooLibloader:1.4:all'
compile 'me.clip:placeholderapi:2.10.4'
shadow fileTree(dir: 'libs', includes: ['*.jar'])
}
shadowJar {
dependencies {
include(dependency('org.bstats:bstats-bukkit:1.7'))
include(dependency('io.izzel.taboolib.loader:TabooLibloader:1.4:all'))
}
relocate "io.izzel.taboolib.loader", project.group
relocate "org.bstats.bukkit", "me.arasple.mc.trhologram.bstats"
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include 'plugin.yml'
expand 'version': project.version, 'built': new SimpleDateFormat("yyyy-MM-dd' 'HH:mm:ss.SSSZ").format(new Date())
}
}