-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
99 lines (76 loc) · 2.18 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 {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
}
}
import org.apache.tools.ant.filters.ReplaceTokens
group = 'com.minecraftly'
ext.exhaustVersion = '2.0.0-SNAPSHOT'
ext.pmfVersion = '1.0.0-SNAPSHOT'
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.github.johnrengelman.shadow'
version = '1.0-SNAPSHOT'
ext.cleanName = getName()
sourceCompatibility = 1.8
targetCompatibility = 1.8
defaultTasks 'clean', 'build', 'test'
jar {
classifier = 'original'
}
shadowJar {
classifier = ''
}
build.dependsOn(shadowJar)
repositories {
mavenLocal() // PluginMessageFramework, Exhaust
mavenCentral()
maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven { // Intake
url 'http://maven.sk89q.com/artifactory/libs-snapshot-local'
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.google.code.gson', name: 'gson', version: '2.3.1'
}
test {
testLogging.showStandardStreams = true
minHeapSize = '128m'
maxHeapSize = '512m'
beforeTest { descriptor ->
logger.lifecycle('Running test: ' + descriptor)
}
testLogging {
exceptionFormat = 'full'
}
}
}
subprojects {
afterEvaluate { project-> // this needs done after projects have been initialized
def cleanName = project.ext.cleanName
archivesBaseName = cleanName
processResources {
filter ReplaceTokens, tokens: [
'project.group' : project.getGroup(),
'project.name' : project.getName(),
'project.version': project.getVersion(),
'project.cleanName': cleanName
]
}
}
}