-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
44 lines (36 loc) · 825 Bytes
/
build.gradle.kts
File metadata and controls
44 lines (36 loc) · 825 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
import org.semver4j.Semver
// SPDX-FileCopyrightText: Copyright © 2023 - 2025 Caleb Cushing
//
// SPDX-License-Identifier: MIT
buildscript { dependencyLocking { lockAllConfigurations() } }
plugins {
base
alias(libs.plugins.dependency.analysis)
alias(libs.plugins.semver)
}
dependencyLocking { lockAllConfigurations() }
group = "com.xenoterracide"
version =
providers
.environmentVariable("IS_PUBLISHING")
.flatMap { semver.provider }
.getOrElse(Semver.ZERO)
tasks.dependencies {
dependsOn(subprojects.map { it.tasks.dependencies })
}
tasks.check {
dependsOn(tasks.buildHealth)
}
dependencyAnalysis {
issues {
all {
onAny {
severity("fail")
}
onUnusedDependencies {
exclude(libs.junit.parameters)
exclude(libs.junit.jupiter)
}
}
}
}