-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (45 loc) · 1.57 KB
/
build.gradle
File metadata and controls
57 lines (45 loc) · 1.57 KB
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
group 'me.eddie'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = 1.7
targetCompatibility = 1.7
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
repositories {
flatDir {
dirs 'lib'
}
mavenLocal()
mavenCentral()
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots" } //Says snapshots but is the official repo for building plugins against
}
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.spigotmc', name: 'spigot-api', version: '1.11-R0.1-SNAPSHOT' //Spigot (Bukkit for Minecraft 1.9+) API
testCompile group: 'junit', name: 'junit', version: '4.8.2'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.4.12'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.4.12'
testCompile group: 'org.javassist', name: 'javassist', version: '3.18.2-GA'
}
task generateApiDocs(type: Javadoc) {
classpath = project.sourceSets.main.compileClasspath
source(sourceSets.main.allJava)
exclude("me/eddie/inventoryguiapi/plugin")
exclude("me/eddie/inventoryguiapi/language")
exclude("me/eddie/inventoryguiapi/listeners")
exclude("me/eddie/inventoryguiapi/examples")
destinationDir = reporting.file("javadocs")
}
jar {
// Keep jar clean:
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF'
exclude 'me/eddie/inventoryguiapi/examples'
}