From 7021e4b2301dbcf11fa6e0b5f44e4f696ace0453 Mon Sep 17 00:00:00 2001 From: Danielle Voznyy Date: Fri, 15 Mar 2024 22:36:46 -0400 Subject: [PATCH] chore: Update to use new ido logging api chore: Update for breaking ido features changes --- build.gradle.kts | 1 - gradle.properties | 2 +- gradle/libs.versions.toml | 2 +- .../kotlin/com/mineinabyss/mobzy/MobzyHelpers.kt | 15 --------------- mobzy-modelengine/build.gradle.kts | 1 - settings.gradle.kts | 2 ++ .../kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt | 2 +- 7 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 mobzy-core/src/main/kotlin/com/mineinabyss/mobzy/MobzyHelpers.kt diff --git a/build.gradle.kts b/build.gradle.kts index 2c41253a..bac4a8db 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,5 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -@Suppress("DSL_SCOPE_VIOLATION") plugins { alias(idofrontLibs.plugins.mia.kotlin.jvm) alias(idofrontLibs.plugins.kotlinx.serialization) diff --git a/gradle.properties b/gradle.properties index 954c2990..69fa3add 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=com.mineinabyss version=0.24 -idofrontVersion=0.22.3 +idofrontVersion=0.23.0-dev.7 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 47eb2cad..db4e05e3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -gearyPaper = "0.29.12-dev.3" +gearyPaper = "0.29.12-dev.6" [libraries] geary-papermc = { module = "com.mineinabyss:geary-papermc", version.ref = "gearyPaper" } diff --git a/mobzy-core/src/main/kotlin/com/mineinabyss/mobzy/MobzyHelpers.kt b/mobzy-core/src/main/kotlin/com/mineinabyss/mobzy/MobzyHelpers.kt deleted file mode 100644 index e319182f..00000000 --- a/mobzy-core/src/main/kotlin/com/mineinabyss/mobzy/MobzyHelpers.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.mineinabyss.mobzy - -import com.mineinabyss.idofront.messaging.logInfo - -fun T.debugVal(message: String = ""): T = debug("$message $this").let { this } - -/** - * Broadcast a message if the debug option is enabled in config - * - * @param message the message to be sent - */ -fun debug(message: Any) { - // get global koin - if (mobzy.config.debug) logInfo(message) -} diff --git a/mobzy-modelengine/build.gradle.kts b/mobzy-modelengine/build.gradle.kts index ecb337a3..26167196 100644 --- a/mobzy-modelengine/build.gradle.kts +++ b/mobzy-modelengine/build.gradle.kts @@ -1,4 +1,3 @@ -@Suppress("DSL_SCOPE_VIOLATION") plugins { id(idofrontLibs.plugins.mia.kotlin.jvm.get().pluginId) id(idofrontLibs.plugins.mia.papermc.get().pluginId) diff --git a/settings.gradle.kts b/settings.gradle.kts index d1e22579..acc3812d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,6 +4,7 @@ pluginManagement { repositories { gradlePluginPortal() maven("https://repo.mineinabyss.com/releases") + maven("https://repo.mineinabyss.com/snapshots") google() mavenLocal() } @@ -22,6 +23,7 @@ dependencyResolutionManagement { repositories { maven("https://repo.mineinabyss.com/releases") + maven("https://repo.mineinabyss.com/snapshots") mavenLocal() } diff --git a/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt b/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt index 45d49443..03b4d56a 100644 --- a/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt +++ b/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt @@ -90,5 +90,5 @@ class MobzyPlugin : JavaPlugin() { } } - class MobzyFeatureManager(val plugin: JavaPlugin) : FeatureManager({ MobzyContext(plugin) }) + class MobzyFeatureManager(plugin: JavaPlugin) : FeatureManager(plugin, { MobzyContext(plugin) }) }