Open Hero9909 opened 2 years ago
I have the exact same problem
I had the same problem on Linux Mint 21.2; installing RPM build tools fixed it: sudo apt install rpm
for Ubuntu/Linux Mint. However, the documentation and error message here could be greatly improved to indicate that there are missing dependencies on the machine.
For reference, the error message that I'm getting without rpm
installed is
Execution failed for task ':packageReleaseRpm'.
> External tool execution failed:
* Command: [/home/dzirbel/.jdks/temurin-18.0.2.1/bin/jpackage, @/home/dzirbel/workspace/compose-playground/build/compose/tmp/packageReleaseRpm.args.txt]
* Working dir: []
* Exit code: 1
* Standard output log: /home/dzirbel/workspace/compose-playground/build/compose/logs/packageReleaseRpm/jpackage-2023-10-11-13-55-47-out.txt
* Error log: /home/dzirbel/workspace/compose-playground/build/compose/logs/packageReleaseRpm/jpackage-2023-10-11-13-55-47-err.txt
*
where the -out
logfile is empty and the -err
one contains only Error: Invalid or unsupported type: [rpm]
.
Issues
when compiling a Gradle project with compose-gradle-plugin:1.1.1 the packageRpm task is not able to determine the needed modules
Steps to reproduce
create a docker image or install needed packages manual in a fedora:36 base.
dnf install java-latest-openjdk-devel binutils fakeroot
clone or receive the source code of the project. run build via ./gradlew :packageRpmexpectation
seamless build producing an rpm
actual behavior
build fails at task :packageRpm throwing External tool execution failed
additional notes
I've verified the procedure by hand and checked with java-17 and java-18 / java-latest