-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (63 loc) · 2.01 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
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.1.0'
}
}
group 'com.example.etude.statemachine'
version '0.0.1-SNAPSHOT'
ext.log4jVersion = '2.9.0'
ext.junitplatformversion = '1.0.0-M4'
ext.junitVersion = '5.0.0-M4' // need to keep it at this version for intellij idea (as of 2018-03-03)
apply plugin: 'kotlin'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
mavenCentral()
jcenter()
jcenter { url "https://jcenter.bintray.com/com.github.kittinunf" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testCompile 'org.assertj:assertj-core:3.9.0'
testRuntime "org.apache.logging.log4j:log4j-core:${log4jVersion}"
testRuntime "org.apache.logging.log4j:log4j-jul:${log4jVersion}"
testCompile "org.junit.platform:junit-platform-runner:${junitplatformversion}"
testCompile "com.nhaarman:mockito-kotlin:1.5.0"
compile "io.arrow-kt:arrow-core:0.6.1"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
junitPlatform {
// platformVersion '1.1.0'
filters {
engines {
// include 'junit-jupiter', 'junit-vintage'
// exclude 'custom-engine'
}
tags {
// include 'fast'
exclude 'slow'
}
includeClassNamePattern '.*Should.*'
includeClassNamePattern '.*Feature.*'
// excludeClassNamePattern '.*'
}
// enableStandardTestTask true
// reportsDir file('build/test-results/junit-platform') // this is the default
logManager 'org.apache.logging.log4j.jul.LogManager'
}
kotlin {
experimental {
coroutines "enable"
}
}