mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-31 19:40:24 +08:00
[core] Use netty-handler instead of netty-all to reduce size
This commit is contained in:
parent
564a7ce8f8
commit
7e84330262
@ -161,6 +161,10 @@ const val `caller-finder` = "io.github.karlatemp:caller:1.1.1"
|
||||
|
||||
const val `android-runtime` = "com.google.android:android:${Versions.android}"
|
||||
const val `netty-all` = "io.netty:netty-all:${Versions.netty}"
|
||||
const val `netty-handler` = "io.netty:netty-handler:${Versions.netty}"
|
||||
const val `netty-common` = "io.netty:netty-common:${Versions.netty}"
|
||||
const val `netty-transport` = "io.netty:netty-transport:${Versions.netty}"
|
||||
const val `netty-buffer` = "io.netty:netty-buffer:${Versions.netty}"
|
||||
const val `bouncycastle` = "org.bouncycastle:bcprov-jdk15on:${Versions.bouncycastle}"
|
||||
|
||||
const val `maven-resolver-api` = "org.apache.maven.resolver:maven-resolver-api:${Versions.mavenArtifactResolver}"
|
||||
|
@ -58,7 +58,7 @@ kotlin {
|
||||
findByName("jvmBaseMain")?.apply {
|
||||
dependencies {
|
||||
implementation(`log4j-api`)
|
||||
implementation(`netty-all`)
|
||||
implementation(`netty-handler`)
|
||||
implementation(`ktor-client-okhttp`)
|
||||
api(`kotlinx-coroutines-jdk8`) // use -jvm modules for this magic target 'jvmBase'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user