-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
35 lines (29 loc) · 901 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
plugins {
id 'application'
id 'java-library'
}
repositories {
mavenCentral()
}
processResources {
// copy the folder as is into the jar-archive,
// thus making it available as a resource with path 'c-runtime'
from('c-runtime') {
into('c-runtime')
}
}
dependencies {
// cf. https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import
testImplementation platform('org.junit:junit-bom:5.11.0')
// cf. https://docs.gradle.org/current/userguide/java_testing.html#using_junit5
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
application {
// Define the main class for the application
mainClass = 'CBuilder.ManualTest'
}
tasks.named('test', Test) {
// cf. https://docs.gradle.org/current/userguide/java_testing.html#using_junit5
useJUnitPlatform()
}