-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (45 loc) · 978 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
47
48
49
50
51
52
53
54
import org.semver4j.Semver
// SPDX-FileCopyrightText: Copyright © 2024 - 2025 Caleb Cushing
//
// SPDX-License-Identifier: MIT
buildscript { dependencyLocking { lockAllConfigurations() } }
plugins {
`java-base`
alias(libs.plugins.dependency.analysis)
alias(libs.plugins.semver)
}
group = "com.xenoterracide.gradle"
dependencyLocking {
lockAllConfigurations()
}
version =
providers
.environmentVariable("IS_PUBLISHING")
.map { semver.provider.get() }
.orElse(Semver.ZERO)
.get()
tasks.dependencies {
dependsOn(subprojects.map { it.tasks.dependencies })
}
tasks.check {
dependsOn(tasks.buildHealth)
}
dependencyAnalysis {
issues {
project(":semver") {
onAny {
exclude(libs.semver)
}
}
all {
onAny {
severity("fail")
exclude("org.slf4j:slf4j-api")
}
onUnusedDependencies {
exclude(libs.junit.parameters)
}
ignoreSourceSet("testIntegration")
}
}
}