gumtree icon indicating copy to clipboard operation
gumtree copied to clipboard

add installDist target

Open milahu opened this issue 5 months ago • 6 comments

expected: running gradle installDist should copy files to $prefix/bin/ and $prefix/lib/

actual: running gradle installDist has no effect

related

workaround: gumtree.nix

    mkdir $out
    cp -r dist/build/install/gumtree/{bin,lib} $out
    rm $out/bin/gumtree.bat

milahu avatar Jul 25 '25 14:07 milahu

Hi @milahu and thanks for the report.

To be clear the distribution is only available in the folders dist and dist-native.

Maybe because I use a shadow jar, the way to get it working is gradle installShadowDist ?

Cheers!

jrfaller avatar Sep 01 '25 14:09 jrfaller

gradle installShadowDist

also has no effect

milahu avatar Sep 01 '25 17:09 milahu

in which folder do you run the command ?

jrfaller avatar Sep 01 '25 18:09 jrfaller

in the repo root at /build/source in the nix-build sandbox

see also my nur-packages

nix-build.log

error: builder for '/nix/store/w11cibpa08bs6h34fab864p5z6p8jmwm-gumtree-4.0.0-beta4.drv' failed to produce output path for output 'out' at '/nix/store/w11cibpa08bs6h34fab864p5z6p8jmwm-gumtree-4.0.0-beta4.drv.chroot/root/nix/store/jmj5yz2gf61cgwkn9wz0n8bnlqf2nh55-gumtree-4.0.0-beta4'

milahu avatar Sep 01 '25 19:09 milahu

OK therefore should be : gradle :dist:installShadowDist. Beware this task is normally launched as a finalizer for gradle build. The resulting installation being in dist/build/install

jrfaller avatar Sep 01 '25 19:09 jrfaller

ok, i already run gradle build and to install i do cp -r dist/build/install/gumtree/{bin,lib} $out

nevermind, this is low priority stuff

milahu avatar Sep 01 '25 19:09 milahu