Skip to content

Commit 4e81ebd

Browse files
committed
fix(buildSrc): Evaluate the applicationName lazily
Even if the code to configure the GraalVM native `imageName` is reached before the `applicationName` is set in the actual project that applies the conventions plugin, still use the correct name by evaluating it lazily. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 753ea9a commit 4e81ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/kotlin/ort-application-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ graalvmNative {
4747
// For options see https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html.
4848
binaries {
4949
named("main") {
50-
imageName = application.applicationName
50+
imageName = provider { application.applicationName }
5151

5252
val initializeAtBuildTime = listOf(
5353
"ch.qos.logback.classic.Level",

0 commit comments

Comments
 (0)