This repository has been archived by the owner on Jul 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
72 lines (61 loc) · 1.9 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.4"
}
}
group 'kr.rvs.ksecurity'
version '4.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: "com.github.johnrengelman.shadow"
test.testLogging.showStandardStreams = true
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
compileJava.dependsOn clean
sourceCompatibility = 1.8
repositories {
/* Spigot Repo */
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public/' }
/* Bungeecord Repo */
maven { url 'https://oss.sonatype.org/content/groups/public' }
/* ProtocolLib */
maven { url 'http://repo.dmulloy2.net/content/groups/public/' }
/* bStats */
maven { url 'http://repo.bstats.org/content/repositories/releases/' }
mavenCentral()
}
dependencies {
compile 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
// compile 'org.ow2.asm:asm:5.2'
compile group: 'com.comphenix.protocol', name: 'ProtocolLib', version: '4.4.0-SNAPSHOT'
compile group: 'org.bstats', name: 'bstats-bukkit', version: '1.2'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.7.0'
}
processResources {
filteringCharset = 'UTF-8'
filter ReplaceTokens, tokens: [
"version" : project.version,
"pluginName": rootProject.name,
"mainClass" : project.group + ".KSecurity",
"author" : "EntryPoint"
]
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}
shadowJar {
classifier = ''
dependencies {
include dependency('org.bstats:bstats-bukkit')
}
relocate 'org.bstats.bukkit', 'kr.rvs.ksecurity.libs.metrics'
}
artifacts {
version = ''
archives shadowJar
}