This repository has been archived by the owner on Feb 10, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
112 lines (96 loc) · 2.74 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
100
101
102
103
104
105
106
107
108
109
110
111
112
group = "me.minidigger.voxelgameslib"
defaultTasks "build"
buildscript {
repositories {
maven {
url "https://jcenter.bintray.com/"
}
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.+'
classpath 'org.zeroturnaround:gradle-jrebel-plugin:1.1.+'
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
}
}
apply plugin: 'nebula-aggregate-javadocs'
subprojects {
apply plugin: "java"
apply plugin: "idea"
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'rebel'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
version = "0.0.1-SNAPSHOT"
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
maven {
url "http://ci.emc.gs/nexus/content/repositories/aikar/"
}
maven {
url "https://jcenter.bintray.com/"
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
dependencies {
testCompile "junit:junit:4.11"
compileOnly "org.projectlombok:lombok:1.14.8"
}
shadowJar {
dependencies {
exclude(dependency("junit:junit"))
}
mergeServiceFiles()
relocate("javax.persistence", "me.minidigger.voxelgameslib.libs.javax.persistence")
}
rebel {
alwaysGenerate = true
showGenerated = false
rootPath = getRootProject().getProjectDir().getAbsolutePath()
classpath {
resource {
directory = "survivalgames/build/classes/main"
}
resource {
directory = "bukkit/build/classes/main"
}
resource {
directory = "api/build/classes/main"
}
resource {
directory = "bungeecord-chat/build/classes/main"
}
resource {
directory = "splatoon/build/classes/main"
}
resource {
directory = "hub/build/classes/main"
}
}
}
test {
reports.html.enabled = false
filter {
includeTestsMatching "*Test*"
}
}
build.dependsOn(generateRebel)
}
task testReport(type: TestReport) {
println "test report exported to $buildDir/reports/allTests"
destinationDir = file("$buildDir/reports/allTests")
reportOn subprojects*.test
}
println """
*********************************************************
You are compiling VoxelGamesLib
if you encounter any issues, create a issue on github
https://github.com/MiniDigger/VoxelGamesLib/issues
*********************************************************
"""