Prechádzať zdrojové kódy

Update core to 2.16.0-RC

ryoii 2 rokov pred
rodič
commit
c1416bbdfd
2 zmenil súbory, kde vykonal 3 pridanie a 7 odobranie
  1. 1 1
      build.gradle.kts
  2. 2 6
      mirai-api-http/build.gradle.kts

+ 1 - 1
build.gradle.kts

@@ -1,7 +1,7 @@
 plugins {
     id("io.codearte.nexus-staging") version "0.30.0"
     id("me.him188.maven-central-publish") version "1.0.0" // to retrieve credentials
-    id("net.mamoe.mirai-console") version "2.15.0" apply false
+    id("net.mamoe.mirai-console") version "2.16.0-RC" apply false
 }
 
 buildscript {

+ 2 - 6
mirai-api-http/build.gradle.kts

@@ -9,11 +9,7 @@ plugins {
 }
 
 val ktorVersion: String by rootProject.extra
-val miraiVersion: String by lazy {
-    rootProject.buildscript.configurations.getByName("classpath").dependencies
-        .first { it.name == "net.mamoe.mirai-console.gradle.plugin" }
-        .version!!
-}
+val mockVersion = "2.15.0"
 
 dependencies {
 
@@ -37,7 +33,7 @@ dependencies {
 
     // test
     testImplementation("net.mamoe.yamlkt:yamlkt:0.12.0")
-    testImplementation("net.mamoe:mirai-core-mock:$miraiVersion")
+    testImplementation("net.mamoe:mirai-core-mock:$mockVersion")
     testImplementation("org.slf4j:slf4j-simple:1.7.32")
     testImplementation(kotlin("test-junit5"))
     ktorTest("server-test-host")