-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (57 loc) · 2.23 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
group 'com.bastman.codechallenge-watermark-service'
version '1.0-SNAPSHOT'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
classpath("org.junit.platform:junit-platform-gradle-plugin:${junitPlatformVersion}")
}
}
subprojects {
apply plugin: 'kotlin'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
jcenter()
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
// junit5
testCompile("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")
testRuntime("org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}")
testCompile("org.junit.platform:junit-platform-console:${junitPlatformVersion}")
testRuntime("org.junit.platform:junit-platform-console:${junitPlatformVersion}")
testCompile("org.junit.platform:junit-platform-runner:${junitPlatformVersion}")
testRuntime("org.junit.platform:junit-platform-runner:${junitPlatformVersion}")
testCompile("org.junit.platform:junit-platform-launcher:${junitPlatformVersion}")
testRuntime("org.junit.platform:junit-platform-launcher:${junitPlatformVersion}")
// kluent assertions
testCompile("org.amshove.kluent:kluent:${kluentVersion}")
}
kotlin {
experimental { coroutines 'enable' }
}
junitPlatform {
// run JUnit 4 tests with the standard Gradle test task?
enableStandardTestTask true
// Only run JUnit Jupiter tests with the JUnit Platform
filters.engines.include 'spek', 'junit-jupiter', 'junit-vintage'
reportsDir file('build/test-results/junit-platform')
filters.packages.include 'com.bastman.codechallenge.watermarkservice'
filters.includeClassNamePatterns '.*Test', '.*Tests', '.*Spec'
//filters.exclueClassNamePatterns '*$*'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}