-
Notifications
You must be signed in to change notification settings - Fork 52
/
build.gradle.kts
46 lines (39 loc) · 1.65 KB
/
build.gradle.kts
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
plugins {
alias(libs.plugins.com.github.ben.manes.versions)
id("com.bytechef.java-common-conventions")
id("jacoco-report-aggregation")
alias(libs.plugins.nl.littlerobots.version.catalog.update)
}
versionCatalogUpdate {
keep {
versions.addAll("checkstyle", "gradle-git-properties", "jackson", "jacoco", "java", "jib-gradle-plugin", "pmd", "spotbugs", "spring-ai", "spring-boot", "spring-cloud-aws", "spring-cloud-dependencies", "spring-shell")
plugins.addAll(libs.plugins.gradle.git.properties, libs.plugins.jib, libs.plugins.spotbugs, libs.plugins.spotless)
}
}
subprojects {
apply(plugin = "com.bytechef.java-common-conventions")
apply(plugin = "io.spring.dependency-management")
dependencies {
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
implementation(rootProject.libs.com.github.spotbugs.spotbugs.annotations)
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
configure<io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension> {
imports {
mavenBom("org.springframework.shell:spring-shell-dependencies:${rootProject.libs.versions.spring.shell.get()}")
}
}
}
reporting {
reports {
@Suppress("UnstableApiUsage")
val jacocoRootReport by registering(JacocoCoverageReport::class) {
testType.set(TestSuiteType.UNIT_TEST)
dependencies {
project.subprojects
.filter { it.plugins.findPlugin("jacoco") != null }
.forEach { jacocoAggregation(it) }
}
}
}
}