[core] Use netty-handler instead of netty-all to reduce size

This commit is contained in:
Him188 2022-10-29 13:11:30 +01:00
parent 564a7ce8f8
commit 7e84330262
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375
2 changed files with 5 additions and 1 deletions

View File

@ -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}"

View File

@ -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'
}