diff --git a/distribution/archives/build.gradle b/distribution/archives/build.gradle index c3ca84a53f2..6bdab3dcab0 100644 --- a/distribution/archives/build.gradle +++ b/distribution/archives/build.gradle @@ -61,14 +61,8 @@ CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String pla with binFiles(distributionType, oss, jdk) } if (jdk) { - if ("darwin".equals(platform)) { - into('jdk.app') { - with jdkFiles(project, platform) - } - } else { - into('jdk') { - with jdkFiles(project, platform) - } + into("darwin".equals(platform) ? 'jdk.app' : 'jdk') + with jdkFiles(project, platform) } } into('') {