From 33ff8a97710bb5b9a9898732a8d29ccf67503e6c Mon Sep 17 00:00:00 2001 From: Danielle Voznyy Date: Fri, 14 Jun 2024 16:32:05 -0400 Subject: [PATCH] fix: Add dependency on jlink for jib task --- build.gradle.kts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2ae22bc..27ba05a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -28,8 +28,13 @@ application { mainClass = "com.mineinabyss.discord.bot.MainKt" } -tasks.jibDockerBuild { - dependsOn("jlinkJre") +tasks { + jibDockerBuild { + dependsOn("jlinkJre") + } + this.jib { + dependsOn("jlinkJre") + } } jlinkJre { @@ -42,7 +47,7 @@ jib { extraDirectories { paths { path { - setFrom(project.file("build/jlink-jre/jre")) + setFrom(file("build/jlink-jre/jre")) into = "/usr/local" } }