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 0
/
Copy pathbuild.gradle
147 lines (125 loc) · 3.58 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
group "me.minidigger.voxelgameslib"
version "1.0-SNAPSHOT"
defaultTasks "build"
buildscript {
repositories {
maven {
url "https://jcenter.bintray.com/"
}
mavenCentral()
}
dependencies {
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:3.0.+'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.14.+'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.+'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.+'
}
}
apply plugin: "java"
apply plugin: "idea"
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: "nebula-aggregate-javadocs"
apply plugin: 'com.github.ben-manes.versions'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
compileJava.options.encoding = "UTF-8"
repositories {
mavenCentral()
maven {
url "http://atlas.minidigger.me:4444/repository/maven-public/"
}
maven {
url "https://jcenter.bintray.com/"
}
maven {
url "http://ci.emc.gs/nexus/content/repositories/aikar/"
}
}
shadowJar {
archiveName = "externaltools-${version}.jar"
mergeServiceFiles()
dependencies {
exclude(dependency('org.projectlombok:lombok'))
exclude(dependency("junit:junit"))
}
}
dependencies {
compile project(":jskill")
compile project(":bungeecord-chat")
}
subprojects {
apply plugin: "java"
apply plugin: "idea"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
group 'me.minidigger.voxelgameslib'
version '1.0-SNAPSHOT'
compileJava.options.encoding = "UTF-8"
repositories {
mavenCentral()
maven {
url "https://jcenter.bintray.com/"
}
maven {
url "http://ci.emc.gs/nexus/content/repositories/aikar/"
}
}
dependencies {
testCompile "junit:junit:4.12"
compileOnly "com.google.code.findbugs:jsr305:3.0.1"
compile "com.google.code.gson:gson:2.8.0"
compile "org.projectlombok:lombok:1.16.14"
compile "com.google.inject:guice:4.1.0"
compile "org.hibernate:hibernate-core:5.2.9.Final"
compile "com.googlecode.json-simple:json-simple:1.1.1"
compile "net.lingala.zip4j:zip4j:1.3.2"
compile "org.reflections:reflections:0.9.11"
compile "co.aikar:taskchain-core:3.4.3"
compile 'nu.studer:java-ordered-properties:1.0.1'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
test {
reports.html.enabled = false
filter {
includeTestsMatching "*Test*"
}
}
}
extraArchive {
sources = true
tests = false
javadoc = true //TODO fix javadoc and sources
}
nexus {
sign = true
repositoryUrl = 'http://atlas.minidigger.me:4444/repository/maven-public/'
snapshotRepositoryUrl = 'http://atlas.minidigger.me:4444/repository/maven-snapshots/'
}
artifacts {
archives shadowJar
}
modifyPom {
project {
dependencies {
// keep this empty since we shade everything into one artifact, no dependencies
}
}
}
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/VoxelGamesLib/VoxelGamesLib/issues
*********************************************************
"""