-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
47 lines (39 loc) · 1.13 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
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M4'
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.junit.platform.gradle.plugin'
jar {
baseName = 'junit5-workshop'
version = '1.0.0-SNAPSHOT'
}
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.compilerArgs += '-parameters'
}
dependencies {
// this is all you need to write tests with JUnit Jupiter;
// for writing tests "testCompile" scope would suffice, but extensions
// are defined in the project's "main" folder, so we need "compile"
// JUnit Jupiter API and TestEngine implementation
compile("org.junit.jupiter:junit-jupiter-api:5.0.0-M4")
// other test libraries work out of the box. e.g. AssertJ and Mockito
testCompile("org.assertj:assertj-core:3.3.0")
testCompile("org.mockito:mockito-core:1.10.19")
// contains the engine that actually runs the Jupiter-tests
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.0.0-M4")
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}