Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 2b8124f

Browse files
committed
+ Build
1 parent ac11469 commit 2b8124f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ tasks.test {
2525
useJUnitPlatform()
2626
}
2727

28+
tasks.jar {
29+
manifest {
30+
attributes["Main-Class"] = "MainKt"
31+
}
32+
configurations["compileClasspath"].forEach { file: File ->
33+
from(zipTree(file.absoluteFile))
34+
}
35+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
36+
}
37+
2838
tasks.withType<KotlinCompile> {
2939
kotlinOptions.jvmTarget = "1.8"
3040
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Main-Class: MainKt
3+

0 commit comments

Comments
 (0)