-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
44 lines (39 loc) · 1.37 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
plugins {
alias(libs.plugins.idea)
alias(libs.plugins.ghr)
}
tasks.named("wrapper", Wrapper::class) {
distributionType = Wrapper.DistributionType.BIN
gradleVersion = "8.11.1"
}
version = "${libs.versions.scala3.get()}-build-${project.property("build_number")}"
val releaseDebug = (System.getenv("RELEASE_DEBUG") ?: "true").toBoolean()
githubRelease {
owner = "Kotori316"
repo = "SLP"
token(project.findProperty("githubToken") as? String ?: System.getenv("REPO_TOKEN") ?: "")
targetCommitish = project.property("branch") as String
prerelease = project.version.toString().contains("SNAPSHOT")
body = """
For Minecraft ${libs.versions.minecraft.get()}
This mod provides language provider, "kotori_scala".
Scala3: ${libs.versions.scala3.get()}
Scala: ${libs.versions.scala2.get()}
Cats: ${libs.versions.cats.get()}
""".trimIndent()
releaseAssets = files(
*listOfNotNull(
findProject(":forge")?.let {
fileTree(it.layout.buildDirectory.dir("libs")) {
include("*.jar")
}
},
findProject(":neoforge")?.let {
fileTree(it.layout.buildDirectory.dir("libs")) {
include("*.jar")
}
},
).toTypedArray()
)
dryRun = releaseDebug
}