-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
73 lines (57 loc) · 1.22 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
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'jacoco'
// H version
version = '0.0.0'
group = "io.github.phenax"
buildscript {
ext {
kotlin_version = '1.1.51'
kotlintest_version = '2.0.7'
dokka_version = '0.9.15'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
defaultTasks 'test'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-runtime:$kotlin_version"
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
testCompile "io.kotlintest:kotlintest:$kotlintest_version"
}
// Minimum jvmTarget of 1.8 needed since Kotlin 1.1
compileKotlin {
kotlinOptions.jvmTarget= 1.8
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
}
}
// KotlinTest configuration
test {
testLogging.showStandardStreams = true
}
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task wrapper(type: Wrapper) {
gradleVersion = "4.1"
}