From d9a5f7c50d1cf82db08544b3a473966993bb1b07 Mon Sep 17 00:00:00 2001 From: ryoii Date: Tue, 20 Dec 2022 12:13:30 +0800 Subject: [PATCH] Fix dependencies --- build.gradle.kts | 5 +++++ mirai-api-http-spi/build.gradle.kts | 1 - mirai-api-http/build.gradle.kts | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 12f860c5..8dd22378 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("io.codearte.nexus-staging") version "0.30.0" id("me.him188.maven-central-publish") version "1.0.0-dev-3" // to retrieve credentials + id("net.mamoe.mirai-console") version "2.13.2" apply false } buildscript { @@ -35,6 +36,10 @@ allprojects { } } +subprojects { + plugins.apply("net.mamoe.mirai-console") +} + nexusStaging { packageGroup = "net.mamoe" // from Sonatype accounts, do not change username = mavenCentralPublish.credentials?.sonatypeUsername diff --git a/mirai-api-http-spi/build.gradle.kts b/mirai-api-http-spi/build.gradle.kts index 90ffb863..2e7656fa 100644 --- a/mirai-api-http-spi/build.gradle.kts +++ b/mirai-api-http-spi/build.gradle.kts @@ -2,7 +2,6 @@ plugins { kotlin("jvm") kotlin("plugin.serialization") id("kotlinx-atomicfu") - id("net.mamoe.mirai-console") version "2.13.2" id("me.him188.maven-central-publish") } diff --git a/mirai-api-http/build.gradle.kts b/mirai-api-http/build.gradle.kts index d40ea0fa..f33870fc 100644 --- a/mirai-api-http/build.gradle.kts +++ b/mirai-api-http/build.gradle.kts @@ -4,7 +4,6 @@ plugins { kotlin("jvm") kotlin("plugin.serialization") id("kotlinx-atomicfu") - id("net.mamoe.mirai-console") version "2.13.2" id("me.him188.maven-central-publish") } @@ -24,7 +23,7 @@ dependencies { ktorImplementation("client-okhttp") ktorImplementation("client-websockets") - implementation("net.mamoe.yamlkt:yamlkt:0.12.0") + compileOnly("net.mamoe.yamlkt:yamlkt:0.12.0") implementation("org.slf4j:slf4j-simple:1.7.32") // test