🚑 Satte mainclass for gradle build
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
parent
f6650d5927
commit
aafa3cf243
2 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
private val mainClass = "no.nav.helse.sprik.ApplicationKt"
|
private val main_class = "no.nav.helse.sprik.ApplicationKt"
|
||||||
|
|
||||||
|
|
||||||
private val ktor_version = "2.3.2"
|
private val ktor_version = "2.3.2"
|
||||||
private val kotlin_version = "1.8.22"
|
private val kotlin_version = "1.8.22"
|
||||||
|
@ -12,12 +11,15 @@ private val exposed_version = "0.41.1"
|
||||||
private val testcontainers_postgresql_version = "1.18.3"
|
private val testcontainers_postgresql_version = "1.18.3"
|
||||||
private val junit_jupiter_version = "5.9.3"
|
private val junit_jupiter_version = "5.9.3"
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm") apply true
|
kotlin("jvm") apply true
|
||||||
|
id("io.ktor.plugin") version "2.3.2"
|
||||||
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.20"
|
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.20"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
mainClass.set(main_class)
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
|
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
|
||||||
|
@ -60,7 +62,7 @@ tasks {
|
||||||
archiveBaseName.set("app")
|
archiveBaseName.set("app")
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes["Main-Class"] = mainClass
|
attributes["Main-Class"] = main_class
|
||||||
attributes["Class-Path"] = configurations.runtimeClasspath.get().joinToString(separator = " ") {
|
attributes["Class-Path"] = configurations.runtimeClasspath.get().joinToString(separator = " ") {
|
||||||
it.name
|
it.name
|
||||||
}
|
}
|
||||||
|
@ -76,4 +78,4 @@ tasks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
4
yarn.lock
Normal file
4
yarn.lock
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
Reference in a new issue