-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (52 loc) · 1.55 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
plugins {
id 'java'
}
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
ext {
jqwikVersion = '1.8.5'
junitVersion = '1.10.1'
jupiterVersion = '5.10.1'
assertJVersion = '3.24.1'
opentest4jVersion = '1.3.0'
mockitoVersion = '4.11.0'
approvalTestsVersion = '23.0.0'
jacocoVersion = '0.8.12'
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
compileTestJava {
options.compilerArgs += '-parameters'
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform {
includeEngines 'jqwik'
}
include '**/*Properties.class'
include '**/*Test.class'
include '**/*Tests.class'
// testLogging.events = ["passed", "failed", "skipped"]
// testLogging.showStandardStreams = true
}
dependencies {
implementation("org.opentest4j:opentest4j:${opentest4jVersion}")
implementation("org.jacoco:org.jacoco.cli:${jacocoVersion}")
testImplementation("net.jqwik:jqwik:${jqwikVersion}")
testImplementation("net.jqwik:jqwik-testing:${jqwikVersion}")
testRuntimeOnly ("org.junit.platform:junit-platform-launcher:${junitVersion}")
// Fluent assertions library
testImplementation("org.assertj:assertj-core:${assertJVersion}")
// Mockito dependency
testImplementation("org.mockito:mockito-core:${mockitoVersion}")
// To work around annoying bug in "IntelliJ's test runner"
testImplementation("org.junit.jupiter:junit-jupiter-engine:${jupiterVersion}")
testImplementation("com.approvaltests:approvaltests:${approvalTestsVersion}")
}
wrapper {
gradleVersion = '8.7'
}