-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2: missing plugin in gradle.lock #66
Comments
Thanks for testing! I was able to build this with the following flake: {
inputs = {
gradle2nix.url = "github:tadfisher/gradle2nix/v2";
};
outputs = { self, gradle2nix }: {
packages.x86_64-linux.default = gradle2nix.builders.x86_64-linux.buildGradlePackage {
pname = "ATLauncher";
version = "3.4.37.0";
src = ./.;
# Generated with:
# nix run github:tadfisher/gradle2nix -- -t build -- -x test
lockFile = ./gradle.lock;
gradleFlags = [ "build" "-x" "test" ];
installPhase = ''
# TODO
'';
};
};
} Note the build flags The install phase will probably have to recreate what they do in As far as the Gradle Enterprise plugin goes, I don't see any references to it in the repo and I didn't run into the build attempting to use it, so I think it may be leaking from your environment (e.g. it's in |
Running
I tried running it with Error
My initial guess was that you're using a different version of ATLauncher so you didn't get errors; but I noticed the version you're using is from the future haha. So, versioning is not the issue. Hmm. As far as the Gradle Enterprise thing goes, I don't have Gradle globally on my system => no |
D'oh! The command should be |
Yes, I did run that; but that failed with some other errors. I've attached them in the little |
Hmm, |
Another thing I just thought of is that I have |
I've tried it locally and I get the same error. However, I copy pasted the exact command it's trying to run: /home/getpsyched/ATLauncher/build/tmp/launch4j/3.50/bin/windres --preprocessor=cat -J rc -O coff -F pe-i386 /tmp/launch4j11778579013791295609rc /tmp/launch4j9271147981423588548o And I get the following output:
I'm guessing that's exactly why
|
I've got a package running with the following build flags: gradleFlags = [ "build" "--exclude-task" "test" "--exclude-task" "createExe" ]; See: https://github.com/GetPsyched/homeless-shelter/blob/atlauncher/packages/atlauncher.nix But since we're excluding |
Yeah, so the problem isn't gradle2nix per se, it's that |
Raise an issue for what exactly? Also, should I close this issue? The problem is out of scope of gradle2nix now. |
I have tried packaging ATLauncher with a simple script given below:
FWIW, I ran
nix build -f "https://github.com/tadfisher/gradle2nix/archive/v2.tar.gz"
to get thegradle2nix
executable to generate the lock file.When I run this derivation, I get the following error:
Error
The error is pretty straightforward: It couldn't find
com.gradle:gradle-enterprise-gradle-plugin:3.16.2
. I tried finding this in the generatedgradle.lock
file and it wasn't there. So the executable couldn't find all the deps, perhaps?The text was updated successfully, but these errors were encountered: