-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
171 lines (140 loc) · 3.44 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'de.undercouch:gradle-download-task:1.2'
}
}
plugins {
id 'java'
id 'findbugs'
id 'com.github.johnrengelman.shadow' version '1.2.0'
id "de.undercouch.download" version "1.2"
id 'maven-publish'
id 'ivy-publish'
}
sourceCompatibility = 1.7
version = '0.0.4'
group = "com.archivesmc.painter"
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
repositories {
mavenCentral()
// Spigot
maven {
url "https://hub.spigotmc.org/nexus/content/groups/public/"
name "Spigot"
}
// LogBlock
maven {
url 'http://repo.md-5.net/content/repositories/public/'
name "md-5"
}
// Prism
maven {
url 'http://dhmc.us:8081/nexus/content/repositories/public/'
name "prism"
}
// WorldEdit (for LogBlock)
maven {
url 'http://maven.sk89q.com/repo/'
name "sk89q"
}
// ArchBlock
maven {
url 'http://cherry.gserv.me/repos/maven/'
name "gserv.me"
}
// WGCustomFlags (For ArchBlock)
maven {
url 'http://maven.mewin.de/'
name "mewin"
}
// Vault (For ArchBlock)
maven {
url 'http://nexus.theyeticave.net/content/repositories/pub_releases'
name "vault"
}
// WorldGuard
maven {
url "http://maven.sk89q.com/artifactory/repo/"
name "sk89q"
}
// Sponge (for ArchBlock)
maven {
url "http://repo.spongepowered.org/maven"
name "sponge"
}
}
publishing {
publications {
ivyJava(IvyPublication) {
from components.java
}
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
ivy {
url "/var/www/gserv/cherry/repos/ivy/"
}
maven {
url "/var/www/gserv/cherry/repos/maven/"
}
}
}
defaultTasks 'clean', 'jar'
jar {
from sourceSets.main.allJava
archiveName = "Painter-${version}.jar"
}
artifacts {
archives jar
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
// Download CoreProtect
download {
src 'http://dev.bukkit.org/media/files/820/756/CoreProtect_2.10.0.jar'
dest 'lib/CoreProtect.jar'
}
// Download HawkEye
download {
src 'http://dev.bukkit.org/media/files/731/750/HawkEye.jar'
dest 'lib/HawkEye.jar'
}
// Download RedProtect
download {
src 'http://dev.bukkit.org/media/files/882/505/RedProtect.jar'
dest 'lib/RedProtect.jar'
}
// Download PlotMe. These guys have no idea how maven repos should be done, apparently.
download {
src 'http://ci.worldcretornica.com/job/PlotMe-Core/lastSuccessfulBuild/artifact/target/PlotMe-Core.jar'
dest 'lib/PlotMe-Core.jar'
}
dependencies {
compile 'de.diddiz:logblock:dev-SNAPSHOT'
compile 'me.botsko:prism:2.0.4'
compile 'org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT'
compile 'com.archivesmc.archblock:ArchBlock:0.1.0b'
compile "com.sk89q:worldguard:6.0.0-SNAPSHOT"
compile 'com.archivesmc.archblock:ArchBlock:0.1.1'
compile files('lib/CoreProtect.jar')
compile files('lib/HawkEye.jar')
compile files('lib/RedProtect.jar')
compile files('lib/PlotMe-Core.jar')
}
javadoc {
// Apparently this fixes things
options.addStringOption("sourcepath", "")
}