-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathbuild.gradle
More file actions
44 lines (36 loc) · 985 Bytes
/
build.gradle
File metadata and controls
44 lines (36 loc) · 985 Bytes
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
plugins {
id 'java'
}
// Common configuration for all subprojects
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.named('test') {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
outputs.upToDateWhen { false } // Always run tests, never cache
}
}
// Root level tasks
task runAllTests {
description = 'Run tests for all projects'
group = 'verification'
dependsOn subprojects.collect { it.tasks.named('test') }
}
task buildAll {
description = 'Build all projects'
group = 'build'
dependsOn subprojects.collect { it.tasks.named('build') }
}