mudasar187
11/22/2023, 8:32 AMdb2jcc_license_cisuz.jar
, but where in IntelliJ can i add this license so i can run the application locally from Intellij?Aleksei Tirman [JB]
11/22/2023, 9:16 AMmudasar187
11/22/2023, 9:43 AMtasks {
named<Jar>("jar") {
archiveBaseName.set("app")
manifest {
attributes["Main-Class"] = "no.nav.sokos.app.ApplicationKt"
attributes["Class-Path"] =
configurations.runtimeClasspath.get().joinToString(separator = " ") {
it.name
}.plus("/var/run/secrets/db2license/db2jcc_license_cisuz.jar")
}
doLast {
configurations.runtimeClasspath.get().forEach {
val fileProvider: Provider<RegularFile> = layout.buildDirectory.file("libs/${it.name}")
val targetFile = File(fileProvider.get().toString())
if (!targetFile.exists()) {
it.copyTo(targetFile)
}
}
}
}
}
But when run locally on my machine it cant find the file, even if i change the path file is to on my computer path.Aleksei Tirman [JB]
11/22/2023, 9:51 AM-cp
flag with the path of the JAR?mudasar187
11/22/2023, 9:55 AMmudasar187
11/22/2023, 9:55 AMAleksei Tirman [JB]
11/22/2023, 9:55 AMRun
panel.mudasar187
11/22/2023, 9:57 AMmudasar187
11/22/2023, 9:57 AMAleksei Tirman [JB]
11/22/2023, 9:58 AMmudasar187
11/22/2023, 9:58 AMAleksei Tirman [JB]
11/22/2023, 10:01 AM-cp
flag added. For more information please read the documentation.