Skip to content

Commit a688751

Browse files
author
y
committed
.
1 parent adf561d commit a688751

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ plugins{
2525
}
2626

2727
application {
28-
mainClassName = "HelloworldclientKt"
28+
mainClass.set("HelloworldclientKt")
2929
}
3030

3131
java.sourceCompatibility = JavaVersion.VERSION_18

server/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ plugins{
2727
java.sourceCompatibility = JavaVersion.VERSION_18
2828

2929
application {
30-
mainClassName = "HelloworldserverKt"
30+
mainClass.set("HelloworldserverKt")
31+
}
32+
33+
tasks.jar {
34+
manifest {
35+
attributes(mapOf("Main-Class" to "HelloworldserverKt"))
36+
}
3137
}
3238

3339
repositories {

0 commit comments

Comments
 (0)