Skip to content

Commit eed9d96

Browse files
committed
adapt overflow core
1 parent a26a9a4 commit eed9d96

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
2-
val kotlinVersion = "1.6.10"
2+
val kotlinVersion = "1.8.0"
33
kotlin("jvm") version kotlinVersion
44
kotlin("plugin.serialization") version kotlinVersion
55

6-
id("net.mamoe.mirai-console") version "2.13.2"
6+
id("net.mamoe.mirai-console") version "2.16.0"
77
}
88

99
group = "org.example"
@@ -15,3 +15,20 @@ repositories {
1515
}
1616
mavenCentral()
1717
}
18+
19+
mirai {
20+
noTestCore = true
21+
setupConsoleTestRuntime {
22+
// 移除 mirai-core 依赖
23+
classpath = classpath.filter {
24+
!it.nameWithoutExtension.startsWith("mirai-core-jvm")
25+
}
26+
}
27+
}
28+
29+
dependencies {
30+
31+
val overflowVersion = "2.16.0"
32+
compileOnly("top.mrxiaom:overflow-core-api:$overflowVersion")
33+
testConsoleRuntime("top.mrxiaom:overflow-core:$overflowVersion")
34+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)