Skip to content

Commit 8918bf7

Browse files
authored
Merge pull request #418 from joreilly/backend
backend updates
2 parents 34d40dc + b7a5fa3 commit 8918bf7

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

backend/build.gradle.kts

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1+
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)
2+
3+
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
4+
15
plugins {
26
kotlin("multiplatform")
3-
application
47
kotlin("plugin.serialization")
5-
id("com.github.johnrengelman.shadow")
8+
alias(libs.plugins.shadowPlugin)
69
}
710

8-
911
kotlin {
1012
jvm() {
11-
withJava()
13+
binaries {
14+
executable {
15+
mainClass.set("ServerKt")
16+
}
17+
}
1218
}
1319

1420
sourceSets {
1521
jvmMain.dependencies {
1622
implementation(libs.kotlinx.coroutines)
1723
implementation(libs.kotlinx.serialization)
1824

19-
implementation("io.ktor:ktor-server-core:2.3.12")
20-
implementation("io.ktor:ktor-server-netty:2.3.12")
21-
implementation("io.ktor:ktor-server-cors:2.3.12")
22-
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.12")
23-
implementation("io.ktor:ktor-server-content-negotiation:2.3.12")
25+
implementation("io.ktor:ktor-server-core:3.2.1")
26+
implementation("io.ktor:ktor-server-netty:3.2.1")
27+
implementation("io.ktor:ktor-server-cors:3.2.1")
28+
implementation("io.ktor:ktor-serialization-kotlinx-json:3.2.1")
29+
implementation("io.ktor:ktor-server-content-negotiation:3.2.1")
2430

2531
implementation("ch.qos.logback:logback-classic:1.5.8")
2632

@@ -29,6 +35,9 @@ kotlin {
2935
}
3036
}
3137

32-
application {
33-
mainClass.set("ServerKt")
34-
}
38+
tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
39+
manifest {
40+
attributes["Main-Class"] = "ServerKt"
41+
}
42+
}
43+

backend/src/jvmMain/kotlin/Server.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fun main() {
5959
"success", 3,
6060
listOf(
6161
Assignment("ISS", "Chris Cassidy"),
62-
Assignment("ISS", "Anatoly Ivanishin"),
62+
Assignment("ISS", "Tracy Caldwell Dyson"),
6363
Assignment("ISS", "Ivan Vagner")
6464
)
6565
)

gradle.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ kotlin.code.style=official
99
xcodeproj=./ios/PeopleInSpaceSwiftUI
1010

1111

12-
# https://blog.jetbrains.com/kotlin/2022/07/a-new-approach-to-incremental-compilation-in-kotlin/
13-
kotlin.incremental.useClasspathSnapshot=true
14-
1512
# https://twitter.com/Sellmair/status/1543938828062392322
1613
import_orphan_source_sets=false
1714

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ compose-multiplatform = "1.8.2"
66
composeUiTooling = "1.4.1"
77
coroutines = "1.10.2"
88
kotlinxSerialization = "1.9.0"
9-
androidGradlePlugin = "8.11.0"
9+
androidGradlePlugin = "8.11.1"
1010
koin = "4.1.0"
1111
koinCompose = "4.1.0"
1212
koinComposeMultiplatform = "4.1.0"
@@ -39,7 +39,7 @@ okhttp = "5.0.0"
3939
kermit = "2.0.6"
4040

4141
gradleVersionsPlugin = "0.52.0"
42-
shadowPlugin = "8.1.1"
42+
shadowPlugin = "9.0.0-rc2"
4343
skie = "0.10.4"
4444

4545
mcp = "0.5.0"
@@ -159,7 +159,7 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
159159
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
160160
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
161161
gradleVersionsPlugin = { id = "com.github.ben-manes.versions", version.ref = "gradleVersionsPlugin" }
162-
shadowPlugin = { id = "com.github.johnrengelman.shadow", version.ref = "shadowPlugin" }
162+
shadowPlugin = { id = "com.gradleup.shadow", version.ref = "shadowPlugin" }
163163
sqlDelight = { id = "app.cash.sqldelight", version.ref = "sqlDelight" }
164164
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-multiplatform" }
165165
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

0 commit comments

Comments
 (0)