-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
39 lines (32 loc) · 860 Bytes
/
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
plugins {
id 'java'
id 'application'
}
group 'eu.jrie.abacus'
version '1.0'
repositories {
mavenCentral()
}
application {
mainClass = "eu.jrie.abacus.Abacus"
applicationDefaultJvmArgs = ['--enable-preview']
}
sourceCompatibility = JavaVersion.VERSION_15
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.7.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.mockito:mockito-core:3.8.0'
}
tasks.withType(JavaCompile) {
options.compilerArgs += "--enable-preview"
}
tasks.withType(Test) {
useJUnitPlatform()
jvmArgs += "--enable-preview"
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
}
tasks.withType(JavaExec) {
jvmArgs += "--enable-preview"
}