-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (47 loc) · 1.16 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'jacoco'
id 'eclipse'
id 'idea'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.github.ravenlab'
version = '0.7.0'
repositories {
mavenCentral()
jcenter()
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
}
configurations {
shade
compile.extendsFrom shade
}
shadowJar {
baseName = 'commander'
classifier = null
}
dependencies {
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:3.3.3'
testImplementation 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
testImplementation 'net.md-5:bungeecord-api:1.12-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
compileOnly 'net.md-5:bungeecord-api:1.12-SNAPSHOT'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
}