-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
75 lines (60 loc) · 2.44 KB
/
build.gradle.kts
File metadata and controls
75 lines (60 loc) · 2.44 KB
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
68
69
70
71
72
73
74
75
plugins {
alias(libs.plugins.com.github.ben.manes.versions)
id("com.bytechef.java-common-conventions")
id("jacoco-report-aggregation")
id("jvm-test-suite")
alias(libs.plugins.nl.littlerobots.version.catalog.update)
id("io.spring.dependency-management")
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
dependencyManagement {
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}
versionCatalogUpdate {
keep {
versions.addAll("checkstyle", "findsecbugs", "gradle-git-properties", "io-modelcontextprotocol-sdk", "jackson", "jacoco", "java", "jib-gradle-plugin", "pmd", "spotbugs", "spring-ai", "spring-boot", "spring-cloud-aws", "spring-cloud-dependencies", "spring-shell", "testcontainers")
}
}
subprojects {
apply(plugin = "com.bytechef.java-common-conventions")
apply(plugin = "io.spring.dependency-management")
if (project.path.startsWith(":ag-ui")) {
tasks.matching { it.name.startsWith("spotless") || it.name.startsWith("checkstyle") || it.name.startsWith("pmd") || it.name.startsWith("spotbugs") }.configureEach {
enabled = false
}
}
dependencyManagement {
dependencies {
dependency("com.github.spotbugs:spotbugs-annotations:[${rootProject.libs.versions.spotbugs.get()},)")
}
}
dependencies {
compileOnly(rootProject.libs.com.github.spotbugs.spotbugs.annotations)
implementation("org.jspecify:jspecify")
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
spotbugsPlugins("com.h3xstream.findsecbugs:findsecbugs-plugin:${rootProject.libs.versions.findsecbugs.get()}")
testCompileOnly(rootProject.libs.com.github.spotbugs.spotbugs.annotations)
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
}
reporting {
reports {
@Suppress("UnstableApiUsage")
val jacocoRootReport by registering(JacocoCoverageReport::class) {
testSuiteName = "test"
dependencies {
project.subprojects
.filter { it.plugins.findPlugin("jacoco") != null }
.forEach { jacocoAggregation(it) }
}
}
}
}
tasks.matching { it.name.startsWith("spotless") }.configureEach {
enabled = false
}