-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
86 lines (70 loc) · 2.25 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.12.1'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
group = 'in.twizmwaz'
version = '1.9-SNAPSHOT'
project.description = 'An open source implementation of PGM'
String mainClass = 'in.twizmwaz.cardinal.Cardinal'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
jcenter()
maven { url 'https://repo.oc.tc/content/groups/public/' }
maven { url 'http://ci.twizmwaz.in/nexus/content/repositories/release/' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}
dependencies {
compile 'org.projectlombok:lombok:1.16.8'
compile 'tc.oc:sportbukkit-api:1.10.2-R0.1-SNAPSHOT'
// compile 'tc.oc:sportbukkit:1.10.2-R0.1-SNAPSHOT' -Leaving this disabled until we need to enable it
compile 'ee.ellytr.command:EllyCommand:2.0.4'
compile 'ee.ellytr.chat:EllyChat:1.2.6'
compile 'org.jdom:jdom2:2.0.6'
compile 'org.ow2.asm:asm-all:5.0.4'
testCompile('junit:junit:4.12')
}
processResources {
filter ReplaceTokens, tokens: [
'name': rootProject.name,
'description': project.description,
'mainClass': mainClass,
'version': version
]
}
apply plugin: 'com.github.johnrengelman.shadow'
shadowJar {
append('LICENSE')
dependencies {
include(dependency('org.jdom:jdom2:2.0.6'))
relocate 'org.jdom2', 'in.twizmwaz.cardinal.libs.jdom2'
include(dependency('org.ow2.asm:asm-all:5.0.4'))
relocate 'org.objectweb.asm', 'in.twizmwaz.cardinal.libs.asm'
include(dependency('ee.ellytr.command:EllyCommand:2.0.4'))
include(dependency('ee.ellytr.chat:EllyChat:1.2.6'))
}
}
build.dependsOn shadowJar
apply plugin: 'checkstyle'
checkstyle {
toolVersion = '6.14.1'
configFile = project.file('checkstyle.xml')
}
apply plugin: 'license'
license {
include '**/*.java'
ignoreFailures = true
mapping {
java = 'SLASHSTAR_STYLE'
}
}