rebok
01/24/2024, 1:31 PMplugins {
kotlin("multiplatform")
id("io.ktor.plugin")
}
kotlin {
jvm()
sourceSets {
jvmMain {
dependencies {
implementation("io.ktor:ktor-server-core")
implementation("io.ktor:ktor-server-netty")
}
}
}
}
AdamW
01/24/2024, 1:45 PMp-schneider
01/24/2024, 2:15 PMimplementation("io.ktor:ktor-bom:2.3.7")
to make sure the latest version is used.
The ktor gradle plugins seems to be used only for building fat jars and docker images.
https://github.com/ktorio/ktor-build-plugins/rebok
01/24/2024, 2:37 PMrebok
01/24/2024, 2:37 PMAdamW
01/24/2024, 2:39 PMrebok
01/24/2024, 2:40 PMp-schneider
01/24/2024, 2:41 PMrebok
01/24/2024, 4:31 PMp-schneider
01/24/2024, 4:39 PMio.ktor:*
artifact without specifying the version again.
So the only benefit is, that the versions are aligned to whatever you specify in the bom, but you still need to specify the version for the bom itself.
implementation(project.dependencies.platform("io.ktor:ktor-bom:2.3.7"))
rebok
01/24/2024, 6:07 PM