From 6fef5ec833091d30be707d3a706e9b89cd3334ea Mon Sep 17 00:00:00 2001 From: btwonion Date: Thu, 21 Nov 2024 19:32:32 +0100 Subject: [PATCH] update stonecutter --- settings.gradle.kts | 7 +++---- stonecutter.gradle.kts | 7 ++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 588c76d..b7ab606 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,5 +1,3 @@ -import dev.kikugie.stonecutter.StonecutterSettings - rootProject.name = "better-boat-movement" pluginManagement { @@ -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 { @@ -25,7 +24,7 @@ buildscript { } } -extensions.configure { +stonecutter { kotlinController = true centralScript = "build.gradle.kts" shared { diff --git a/stonecutter.gradle.kts b/stonecutter.gradle.kts index 580d134..1fc234a 100644 --- a/stonecutter.gradle.kts +++ b/stonecutter.gradle.kts @@ -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) } @@ -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