Skip to content

Commit

Permalink
use api to pass necessary dependencies
Browse files Browse the repository at this point in the history
tested works well with #126
  • Loading branch information
MrXiaoM committed Feb 9, 2025
1 parent 8b0c6d1 commit 2d95d66
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions onebot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ tasks.test {
}

dependencies {
implementation("com.google.code.gson:gson:2.10.1")
api("com.google.code.gson:gson:2.10.1")
api("org.slf4j:slf4j-api:2.0.5")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
api("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")
api("org.java-websocket:Java-WebSocket:1.5.7")
implementation("org.jetbrains:annotations:24.0.1")
implementation("org.slf4j:slf4j-api:2.0.5")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
implementation("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")
implementation("org.java-websocket:Java-WebSocket:1.5.7")

annotationProcessor("org.java-websocket:Java-WebSocket:1.5.7")
testCompileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
Expand Down
8 changes: 4 additions & 4 deletions overflow-core-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ setupMavenCentralPublication {
}

dependencies {
implementation("net.mamoe:mirai-core-api:$miraiVersion")
implementation("net.mamoe:mirai-core-utils:$miraiVersion")
api("net.mamoe:mirai-core-api:$miraiVersion")
api("net.mamoe:mirai-core-utils:$miraiVersion")

implementation("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")
api("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")

implementation("org.slf4j:slf4j-api:2.0.5")
api("org.slf4j:slf4j-api:2.0.5")
}
12 changes: 6 additions & 6 deletions overflow-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ val miraiVersion = extra("miraiVersion") ?: "2.16.0"

dependencies {
compileOnly("net.mamoe:mirai-console:$miraiVersion")
implementation("net.mamoe:mirai-core-api:$miraiVersion")
implementation("net.mamoe:mirai-core-utils:$miraiVersion")
implementation("org.java-websocket:Java-WebSocket:1.5.7")
implementation("com.google.code.gson:gson:2.10.1")
implementation("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")
api("net.mamoe:mirai-core-api:$miraiVersion")
api("net.mamoe:mirai-core-utils:$miraiVersion")
api("org.java-websocket:Java-WebSocket:1.5.7")
api("com.google.code.gson:gson:2.10.1")
api("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")

fun netty(s: String): Dependency? = implementation("io.netty:netty-$s:4.1.90.Final")
fun netty(s: String): Dependency? = api("io.netty:netty-$s:4.1.90.Final")
netty("codec-http")
netty("codec-socks")
netty("transport")
Expand Down

0 comments on commit 2d95d66

Please sign in to comment.