Dirk Hoffmann
02/03/2021, 12:08 PMgradle createDistributable
(MacOS) I get:
Invalid JDK: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/jpackage is not a file!
Ensure JAVA_HOME or buildSettings.javaHome is set to JDK 14 or newer
do I really need jdk above 11 or just another jdk than adoptopenjdk?
also it complains on mac bundleID not present,
but I don't get where to put below macOS
clause in my build.gradle.kts
(using latest intellij)
macOS {
bundleID = "com.example-company.example-app"
}
any ideas?Javier
02/03/2021, 12:11 PMJavier
02/03/2021, 12:13 PMJAVA_HOME
is configured correctly?Dirk Hoffmann
02/03/2021, 12:14 PMJavier
02/03/2021, 12:14 PM/Home
, /bin/jpackage
should be unnecessary I thinkDirk Hoffmann
02/03/2021, 12:20 PMTask frontendui:createDistributable FAILEDFAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'frontendui:createDistributable'.
Invalid JDK: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/jpackage is not a file!Ensure JAVA_HOME or buildSettings.javaHome is set to JDK 14 or newer
Dirk Hoffmann
02/03/2021, 12:24 PM> Task :frontend:ui:createDistributable FAILED
WARNING: Using incubator modules: jdk.incubator.jpackage
Bundler Mac Application Image skipped because of a configuration problem: The first number in a CFBundleVersion cannot be zero or negative.
Advice to fix: Set a compatible 'appVersion' or set a 'mac.CFBundleVersion'. Valid versions are one to three integers separated by dots.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':frontend:ui:createDistributable'.
> Process 'command '/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/jpackage'' finished with non-zero exit value 1
Javier
02/03/2021, 12:25 PMJavier
02/03/2021, 12:25 PMDirk Hoffmann
02/03/2021, 12:26 PMJavier
02/03/2021, 12:26 PMDirk Hoffmann
02/03/2021, 12:30 PMDirk Hoffmann
02/03/2021, 12:31 PMolonho
02/03/2021, 12:40 PMDirk Hoffmann
02/03/2021, 12:42 PMDirk Hoffmann
02/03/2021, 12:52 PMcompose.desktop {
application {
mainClass = "com.accorddesk.frontend.ui.MainKt"
nativeDistributions {
targetFormats(
org.jetbrains.compose.desktop.application.dsl.TargetFormat.Dmg
)
packageName = "AccordDeskFrontend"
version = "${rootProject.version}"
description = "NdaDesk by AccordDesk"
copyright = "2021 AccordDesk. All rights reserved."
vendor = "Dirk Hoffmann"
macOS {
bundleID = "com.accorddesk.AccordDeskFrontend"
}
}
}
}
> Task :frontend:ui:versionsPrint
Gradle version: 6.8.1
javac version: 15.0.2 (AdoptOpenJDK 15.0.2+7)
versions of core dependencies:
kotlin-stdlib-jdk8-1.4.21-2
kotlin-stdlib-jdk7-1.4.21-2
foundation-desktop-0.3.0-build148
WARNING: Using incubator modules: jdk.incubator.jpackage
Bundler Mac Application Image skipped because of a configuration problem: The first number in a CFBundleVersion cannot be zero or negative.
Advice to fix: Set a compatible 'appVersion' or set a 'mac.CFBundleVersion'. Valid versions are one to three integers separated by dots.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':frontend:ui:createDistributable'.
> Process 'command '/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/jpackage'' finished with non-zero exit value 1
Dirk Hoffmann
02/03/2021, 12:58 PMtargetFormats(
// org.jetbrains.compose.desktop.application.dsl.TargetFormat.Dmg,
org.jetbrains.compose.desktop.application.dsl.TargetFormat.Msi,
org.jetbrains.compose.desktop.application.dsl.TargetFormat.Deb)
olonho
02/03/2021, 1:05 PM1.2.3
?Dirk Hoffmann
02/03/2021, 1:08 PMversion = "0.0.1"
olonho
02/03/2021, 1:14 PMDirk Hoffmann
02/03/2021, 2:01 PMDirk Hoffmann
02/03/2021, 2:02 PMDirk Hoffmann
02/03/2021, 2:02 PMDirk Hoffmann
02/03/2021, 2:03 PMDirk Hoffmann
02/03/2021, 2:17 PMpackageMsi
or packageDeb
on my Mac??
I don't see any distributables inside build/compose/binariesolonho
02/03/2021, 3:51 PMMichael Paus
02/05/2021, 10:33 AMjpackage
utility, which was introduced with JDK 14, which explains why you don’t find it in an older JDK release. For more details it might be useful to have a look at the documentation here: https://docs.oracle.com/en/java/javase/15/jpackage/Dirk Hoffmann
02/05/2021, 10:35 AMMichael Paus
02/05/2021, 10:39 AMDirk Hoffmann
02/05/2021, 10:40 AM