Skip to content

Commit 7ea8f3e

Browse files
committed
build: dix build script
1 parent 2021110 commit 7ea8f3e

File tree

4 files changed

+8
-40
lines changed

4 files changed

+8
-40
lines changed

build.gradle.kts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ tasks {
183183

184184
remapJar {
185185
dependsOn(shadowJar)
186-
input.set(shadowJar.get().archiveFile)
186+
inputFile.set(shadowJar.get().archiveFile)
187187
}
188188
}
189189

@@ -225,27 +225,3 @@ publishMods {
225225
// optional("polylib")
226226
// }
227227
}
228-
229-
/*
230-
publishing {
231-
repositories {
232-
maven("...") {
233-
name = "..."
234-
credentials(PasswordCredentials::class.java)
235-
authentication {
236-
create<BasicAuthentication>("basic")
237-
}
238-
}
239-
}
240-
241-
publications {
242-
create<MavenPublication>("mavenJava") {
243-
groupId = "${property("mod.group")}.${mod.id}"
244-
artifactId = mod.version
245-
version = mcVersion
246-
247-
from(components["java"])
248-
}
249-
}
250-
}
251-
*/

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pluginManagement {
1212
}
1313

1414
plugins {
15-
id("dev.kikugie.stonecutter") version "0.5.2"
15+
id("dev.kikugie.stonecutter") version "0.7.7-beta.2"
1616
}
1717

1818
rootProject.name = "X Backup"

src/main/kotlin/com/github/zly2006/xbackup/XBackup.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ object XBackup : ModInitializer {
4242
lateinit var config: Config
4343
private val configPath = FabricLoader.getInstance().configDir.resolve("x-backup.config.json")
4444
val log = LoggerFactory.getLogger("XBackup")!!
45-
const val MOD_VERSION = /*$ mod_version*/ "0.3.14"
46-
const val GIT_COMMIT = /*$ git_commit*/ "4acdca6"
47-
const val COMMIT_DATE = /*$ commit_date*/ "2025-07-05T08:36:06+08:00"
45+
const val MOD_VERSION = /*$ mod_version*/ "0.3.14+yisibite"
46+
const val GIT_COMMIT = /*$ git_commit*/ "2021110"
47+
const val COMMIT_DATE = /*$ commit_date*/ "2025-08-13T22:59:22+08:00"
4848
var _service: BackupDatabaseService? = null
4949
val service get() = _service!!
5050
var server: MinecraftServer? = null

stonecutter.gradle.kts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ subprojects {
3535
}
3636
}
3737

38-
// Builds every version into `build/libs/{mod.version}/`
39-
stonecutter registerChiseled tasks.register("chiseledBuild", stonecutter.chiseled) {
40-
group = "project"
41-
ofTask("buildAndCollect")
42-
43-
dependsOn(project(":cli").tasks.named("shadowJar"))
44-
}
4538

4639
/*
4740
// Publishes every version
@@ -51,10 +44,9 @@ stonecutter registerChiseled tasks.register("chiseledPublishMods", stonecutter.c
5144
}
5245
*/
5346

54-
stonecutter configureEach {
55-
swap("mod_version", "\"${property("mod.version")}\"")
47+
stonecutter parameters {
48+
swap("mod_version", "\"${node.project.property("mod.version")}\"")
5649
swap("git_commit", "\"${grgit.head().abbreviatedId}\"")
5750
swap("commit_date", "\"${grgit.head().dateTime.toString().substringBefore("[")}\"")
58-
const("poly_lib", project.property("deps.poly_lib").toString().isNotEmpty())
59-
dependency("fapi", project.property("deps.fabric_api").toString())
51+
const("poly_lib", node.project.property("deps.poly_lib").toString().isNotEmpty())
6052
}

0 commit comments

Comments
 (0)