加入shadowJar外掛
This commit is contained in:
parent
de7171b72b
commit
386abf850d
@ -8,6 +8,7 @@ plugins {
|
||||
kotlin("jvm") version "1.8.21"
|
||||
id("io.ktor.plugin") version "2.3.0"
|
||||
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.21"
|
||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
||||
}
|
||||
|
||||
group = "com.ray650128"
|
||||
@ -23,6 +24,10 @@ repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
tasks {
|
||||
create("stage").dependsOn("installDist")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
|
||||
implementation("io.ktor:ktor-server-swagger:$ktor_version")
|
||||
|
||||
@ -19,7 +19,7 @@ import kotlinx.serialization.json.Json
|
||||
import org.litote.kmongo.id.serialization.IdKotlinXSerializationModule
|
||||
|
||||
fun main() {
|
||||
embeddedServer(Netty, port = 8080, host = "0.0.0.0") {
|
||||
embeddedServer(Netty, port = 8787, host = "0.0.0.0") {
|
||||
install(ContentNegotiation) {
|
||||
json(
|
||||
Json { serializersModule = IdKotlinXSerializationModule }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user