This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (57 loc) · 1.48 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
buildscript {
ext.kotlin_version = '1.0.4'
ext.kotlintest_version = '1.3.4'
ext.mockito_kotlin_version = '0.6.2'
ext.dokka_version = '0.9.9'
ext.jogl_version = '2.3.2'
ext.launch4j_version = '1.6.2'
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath "gradle.plugin.edu.sc.seis.gradle:launch4j:${launch4j_version}"
}
}
allprojects {
apply plugin: 'maven'
group = 'org.glimpseframework'
version = '0.5-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'jacoco'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
jcenter()
}
test {
testLogging {
events "passed", "skipped", "failed"
showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
afterSuite { desc, result ->
def output = "results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
def repeatLength = output.length()
println('\n' + ('-' * repeatLength) + '\n' + desc.name + '\n' + output + '\n' + ('-' * repeatLength))
}
}
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
}