diff --git a/build.gradle.kts b/build.gradle.kts index 3e2172b3..e24b4dcf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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) + } } } }