Converting Java app from Heroku Buildpack to Nixpacks
PID: 17ea4c42-9f2e-4000-9f45-4e8f49a32b4c
Hi I am attempting to switch off the heroku builder but switching to Nixpack didn't go as expected. (all I did was change builder and run)
The build exited with the following error
9 Replies
Project ID:
17ea4c42-9f2e-4000-9f45-4e8f49a32b4c
Hi @meadowhawk,
I think the issue may be that you have the
NIXPACKS_PKGS
variable set to jdk
. This is resulting in conflicting Java versionshey thanks for the response! OK so that got me closer, I deleted the value and got to running a build but I'm now getting permission denied while running gradle build.
Can I build the app in the container or do I have to upload an already build jar file?
You can build the app in the container
How would you normally build it locally?
I would run 'gradlew build' which does look like what its trying to do. I wonder if gradlew which is in the project repo requires a chmod +x to make it executable? perhaps that is the cause of the permission denied?
Very likely. Can you try giving it executable permissions and deploying?
This is something that Nixpacks should be doing however
cool OK I'll give that a try and let ya know how it goes, thanks!
yup that did it! Guess Nixpack needs to chmod the file when someone forges to do that or just print out the message for the user to go add +x. π
anyway thanks for the help, you guys are awesome!
Awesome! Glad that fixed it π
We will definitely make the upstream Nixpacks change
cool, yeah its a million little things I am sure!