This repository was archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (50 loc) · 1.53 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
47
48
49
50
51
52
53
54
55
56
57
58
import dev.racci.minix.gradle.data.MCTarget
plugins {
id("dev.racci.minix")
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.plugin.ktlint) apply false
alias(libs.plugins.kotlin.plugin.dokka)
alias(libs.plugins.minecraft.paperweight) apply false
}
allprojects {
version = rootProject.libs.versions.kotlin.asProvider().get()
}
minix {
publishing {
runNumber = System.getenv("BUILD_NUMBER")
create("nms") {
appendRunNumberOrSnapshot = true
}
create("catalog") {
appendRunNumberOrSnapshot = true
componentName = "versionCatalog"
}
}
minecraft.withMCTarget(
project(":nms"),
MCTarget.Platform.PAPER,
"1.19.3",
applyNMS = true,
applyMinix = false
)
}
tasks {
register("publish") {
group = "publishing"
description = "Publishes all publications produced by this project."
dependsOn(
gradle.includedBuilds
.filterNot { it.name == "minix-plugin" }
.mapNotNull { runCatching { it.task(":publish") }.getOrNull() }
)
}
register("publishToMavenLocal") {
group = "publishing"
description = "Publishes all publications produced by this project to the local Maven repository."
dependsOn(
gradle.includedBuilds
.filterNot { it.name == "minix-plugin" }
.mapNotNull { runCatching { it.task(":publishToMavenLocal") }.getOrNull() }
)
}
}