Skip to content

Commit

Permalink
update stonecutter
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed Nov 21, 2024
1 parent 4e334dc commit 6fef5ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import dev.kikugie.stonecutter.StonecutterSettings

rootProject.name = "better-boat-movement"

pluginManagement {
Expand All @@ -11,11 +9,12 @@ pluginManagement {
maven("https://maven.minecraftforge.net")
maven("https://maven.neoforged.net/releases/")
maven("https://maven.kikugie.dev/releases")
maven("https://maven.kikugie.dev/snapshots")
}
}

plugins {
id("dev.kikugie.stonecutter") version "0.4.+"
id("dev.kikugie.stonecutter") version "0.5-beta.5"
}

buildscript {
Expand All @@ -25,7 +24,7 @@ buildscript {
}
}

extensions.configure<StonecutterSettings> {
stonecutter {
kotlinController = true
centralScript = "build.gradle.kts"
shared {
Expand Down
7 changes: 4 additions & 3 deletions stonecutter.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ plugins {
}
stonecutter active "1.21-fabric" /* [SC] DO NOT EDIT */

stonecutter configureEach {
val currentPlatform = current.project.split('-')[1]
stonecutter parameters {
val currentPlatform = stonecutter.current.project.split('-')[1]
val platforms = listOf("fabric", "neoforge", "forge").map { it to (currentPlatform == it) }
consts(platforms)
}
Expand Down Expand Up @@ -66,7 +66,8 @@ tasks.register("postUpdate") {
color = color,
fields = listOf(
Field(
"Supported versions", stonecutter.projects.map { it.property("vers.supportedMcVersions").toString().split(',') }.flatten().toSet().joinToString(), false
"Supported versions", stonecutter.tree.nodes.map { it.property("supportedMcVersions").toString().split(',') }
.flatten().toSet().joinToString(), false
),
Field(
"Supported loaders", supportedLoaders.joinToString(), false
Expand Down

0 comments on commit 6fef5ec

Please sign in to comment.