Skip to content

Commit 382ee91

Browse files
committed
AUTH-8
Minor refactoring
1 parent 3979ccb commit 382ee91

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

auth-service-app/build.gradle.kts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ configurations.matching { it.name == "detekt" }.all {
4545
}
4646

4747
application {
48-
mainClass.set("io.ktor.server.netty.EngineMain")
48+
mainClass.set("ru.somarov.auth.AppKt")
4949
}
5050

5151
ktor {
@@ -54,6 +54,12 @@ ktor {
5454
}
5555
}
5656

57+
tasks {
58+
shadowJar {
59+
mergeServiceFiles() // for micrometer reactor context propagation
60+
}
61+
}
62+
5763
tasks.register("generateBuildInfo") {
5864
group = "build"
5965
description = "Generates build-info.properties file with build metadata."
@@ -76,6 +82,9 @@ tasks.named("jar") {
7682
dependsOn("generateBuildInfo")
7783
}
7884

85+
tasks.named("buildFatJar") {
86+
dependsOn("generateBuildInfo")
87+
}
7988

8089
tasks.withType<Test> {
8190
useJUnitPlatform()

0 commit comments

Comments
 (0)