Closed eeedean closed 6 months ago
PLEASE DON'T DO TRAILING COMMAS IN PLAIN JSON it is not meant for it, parsers have issues with it, my parser has issues with it, i have not found an ultra-simple, similar performant solution (maybe I should use yaml parsers)
the gradle wrapper tries to fetch the latest version, so try to use the pkgs.gradle binary if possible
there should be no need for __noChroot = true;
I improved the syntax for custom repos, they now work the way you specified them
there is still something funky going on with the spring boot dependencies. I cannot query those that are not in the gradle verification metadata, yet i fear spring does exactly that. if that is the case I'll have to write a script to add those deps to the metadata afterwards.
OK, I got your project to build, I guess.
Its currently failing the tests with java.lang.IllegalStateException: Could not find a valid Docker environment
I need to tweak the initscript a bit, since I only got it to work when I switched to manual maven repo generating and adding it to both settings.gradle and build.gradle
there should be no need for __noChroot = true;
Yeah, that's not required anymore!
Its currently failing the tests with
java.lang.IllegalStateException: Could not find a valid Docker environment
The JUnit Tests contained require a Docker Environment. That's why I run them in the checks with a NixOS qemu-kvm machine, which has a Docker environment enabled.
You can just skip tests for build time with -x test
.
Can you go into detail, what changes you did to the project in order to get it to build?
Thanks a lot for your efforts!
__noChroot = true;
with src = self;
buildInputs = [ pkgs.openjdk17 pkgs.gradle];
gradle
instead of ./gradlew
And the rest was on my side, so you need a quick nix flake update gradle-dot-nix
I tried building a basic Spring Boot Application analogue to the example. However, the build of the gradle init script fails with an error for a couple dependencies:
A complete error log may be seen here.
To reproduce, you can clone my Git Repository and run
nix build .#application -v
in the project root.Unfortunately I did not yet figure out, what's the reason for the failure.
Looking forward to your assistance and thanks for your time!