-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (38 loc) · 1016 Bytes
/
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
// © Copyright 2024 Caleb Cushing
// SPDX-License-Identifier: MIT
import org.semver4j.Semver
buildscript { dependencyLocking { lockAllConfigurations() } }
plugins {
our.spotless
alias(libs.plugins.dependency.analysis)
alias(libs.plugins.semver)
}
dependencyLocking { lockAllConfigurations() }
group = "com.xenoterracide.gradle.convention"
version = providers.environmentVariable("IS_PUBLISHING")
.map { semver.gitDescribed }
.orElse(Semver("0.0.0")).get().toString()
tasks.dependencies {
dependsOn(subprojects.map { "${it.path}:dependencies" })
}
tasks.check {
dependsOn(tasks.buildHealth)
}
dependencyAnalysis {
issues {
all {
onAny {
severity("fail")
}
onUnusedDependencies {
exclude(libs.junit.api)
exclude(libs.junit.parameters)
exclude(libs.assertj)
exclude(libs.spring.test)
exclude(libs.spring.boot.test.autoconfigure)
exclude(libs.spring.boot.test.core)
exclude(libs.jspecify)
}
}
}
}