Skip to content

Commit

Permalink
fix: Add dependency on jlink for jib task
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Jun 14, 2024
1 parent 57250f6 commit 33ff8a9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ application {
mainClass = "com.mineinabyss.discord.bot.MainKt"
}

tasks.jibDockerBuild {
dependsOn("jlinkJre")
tasks {
jibDockerBuild {
dependsOn("jlinkJre")
}
this.jib {
dependsOn("jlinkJre")
}
}

jlinkJre {
Expand All @@ -42,7 +47,7 @@ jib {
extraDirectories {
paths {
path {
setFrom(project.file("build/jlink-jre/jre"))
setFrom(file("build/jlink-jre/jre"))
into = "/usr/local"
}
}
Expand Down

0 comments on commit 33ff8a9

Please sign in to comment.