-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
86 lines (69 loc) · 1.84 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'com.github.kt3k.coveralls' version '2.7.1'
id 'net.researchgate.release' version '2.4.0'
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
repositories {
jcenter()
mavenCentral()
maven { url "http://maven.sk89q.com/repo/" }
}
apply plugin: 'java'
apply plugin: "kotlin"
apply plugin: 'jacoco'
group = 'io.github.poeschl.bukkit'
processResources {
filter ReplaceTokens, tokens: [
"name" : project.name,
"version": project.version
]
}
jar {
manifest {
attributes("Project": project.name,
"Version": project.version)
}
}
shadowJar {
configurations = [project.configurations.compile]
classifier = null
}
coveralls {
sourceDirs += ['src/main/kotlin']
}
jacoco {
toolVersion = "0.7.7.201606060606"
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: ["**/InstanceFactory.*"])
})
}
}
}
release {
preTagCommitMessage = '[Gradle Release Plugin] - Version: '
}
dependencies {
compileOnly "org.bukkit:bukkit:$bukkit_version"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "org.bukkit:bukkit:$bukkit_version"
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.2.22'
testCompile 'org.assertj:assertj-core:3.5.2'
testCompile 'com.nhaarman:mockito-kotlin:0.12.2'
}