Skip to content

Commit

Permalink
fix: main class (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
manelp committed Mar 22, 2024
2 parents aaed201 + 76c779d commit 8448f3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apps/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ repositories {
mavenCentral()
}

val myMainClass = "com.agilogy.timetracking.app.MainKt"

tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "com.agilogy.timetracking.app.ApiServerKt"
attributes["Main-Class"] = myMainClass
}
// To avoid the duplicate handling strategy error
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
Expand All @@ -31,7 +33,7 @@ tasks.withType<Jar> {
})
}
application {
mainClass.set("com.agilogy.timetracking.app.AppKt")
mainClass.set(myMainClass)
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion apps/migrationsapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
id("java")
}

val mainClassCompleteName = "com.agilogy.timetracking.migrations.MigrateDbKt"
val mainClassCompleteName = "com.agilogy.timetracking.migrationsapp.MigrateDbKt"

tasks.withType<Jar> {
manifest {
Expand Down

0 comments on commit 8448f3c

Please sign in to comment.