PHILIPPE Jean-Baptiste
06/04/2025, 12:59 PMVampire
06/04/2025, 1:13 PMapplication
plugin so that the consuming build assembles the application accordingly.
If you publish the whole distribution archive, you would either use an artifact transform to unarchive it, or have a Sync
task or sync { ... }
call to unarchive it to some directory and then execute from there.PHILIPPE Jean-Baptiste
06/04/2025, 1:27 PMapplication
to a minimal build.gradle with a dependency to the 'Main' jar like that
runtimeOnly (group: 'com.company', name: "webserver", version: 1.0.0)
all jar are correctly installed in build/install/my_project/lib but the application plugin try to run the empty jar produced by me empty project 😅Vampire
06/04/2025, 1:30 PMVampire
06/04/2025, 1:31 PM-jar
which Gradle would do if there were only one jar in the classpath which is not the case as you have dependencies