Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Conditional build
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Aug 1, 2020
1 parent b692e48 commit f3f0b13
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,19 @@ spotless {
}
}

distributions {
create("graal") {
contents {
from("${rootProject.projectDir}") {
include("README.md", "LICENSE")
}
from("${rootProject.projectDir}/zsh") {
into("zsh")
}
into("bin") {
from(nativeImage)
if (properties.containsKey("graal")) {
distributions {
val graal = create("graal") {
contents {
from("${rootProject.projectDir}") {
include("README.md", "LICENSE")
}
from("${rootProject.projectDir}/zsh") {
into("zsh")
}
into("bin") {
from(nativeImage)
}
}
}
}
Expand Down

0 comments on commit f3f0b13

Please sign in to comment.