Merge pull request #242696 from DevInsideYou/liquibase-fixes

liquibase: include all jars from internal/lib instead of just a few

authored by Jakub Kozłowski and committed by GitHub fdc66db3 3da3074f

+6 -3
+6 -3
pkgs/development/tools/database/liquibase/default.nix
··· 48 48 in 49 49 '' 50 50 mkdir -p $out 51 - mv ./{lib,licenses,internal/lib/liquibase-core.jar,internal/lib/postgresql.jar,internal/lib/picocli.jar} $out/ 51 + mv ./{lib,licenses} $out/ 52 + 53 + mkdir -p $out/internal/lib 54 + mv ./internal/lib/*.jar $out/internal/lib/ 52 55 53 56 mkdir -p $out/share/doc/${pname}-${version} 54 57 mv LICENSE.txt \ ··· 63 66 #!/usr/bin/env bash 64 67 # taken from the executable script in the source 65 68 CP="" 69 + ${addJars "$out/internal/lib"} 66 70 ${addJars "$out/lib"} 67 71 ${addJars "$out"} 68 72 ${lib.concatStringsSep "\n" (map (p: addJars "${p}/share/java") extraJars)} 69 - 70 73 ${lib.getBin jre}/bin/java -cp "\$CP" \$JAVA_OPTS \ 71 - liquibase.integration.commandline.LiquibaseCommandLine \''${1+"\$@"} 74 + liquibase.integration.commandline.LiquibaseCommandLine \''${1+"\$@"} 72 75 EOF 73 76 chmod +x $out/bin/liquibase 74 77 '';