bkhl@toolbox:~$ sudo dnf install groovy
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
Last metadata expiration check: 0:00:28 ago on Wed Jun 17 10:43:35 2020.
No match for argument: groovy
Error: Unable to find a match: groovy
This is in a clean Fedora 32 toolbox.
Some googling pointed to that I need to enable the “modular” repos, but those are as far as I can tell enabled already.
For JVM programming, including Groovy, I usually use https://sdkman.io/. For Jdk I use the AdoptOpenJDK because the Openjdk from the fedora repo has issues with some of the jni stuff I was playing with.
Yeah, command not found error message was not very helpful. I believe the install script from https://get/sdkman.io must have some dependency that I did not have installed until I did the dnf install of groovy, which brought in many new packages including a jdk. Not sure what the dependency was and the sdkman install page did not give any info on other dependencies. I think the install script mostly just works on many distros because of the default installed packages, but a toolbox container may not have the right dependencies because it is meant to be light weight.
Interesting, I created a new F32 toolbox container and I get the same error as @bkhl had. I did not get this when I installed groovy in my F31 toolbox container.
Actually dnf search groovy returns no results even after dnf upgrade and modular repos enabled. It did find it in my F31 toolbox so it must have been removed in F32 repos. I found that using the sdkman will install groovy, so that works for me. BTW, the error below was only on a fresh new toolbox. Running dnf upgrade fixes the sudo bug I mentioned before.
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
groovy (and especially gradle) have been removed from fedora 32 and later, because we’re unable to build and / or update them to newer versions due to questionable upstream decisions (requiring internet access for package builds and always needing exact versions of dependencies).
So dnf install groovy will not work anymore, and you’ll need another method of installing it. Sorry for the inconvenience
sdkman works really well if you’re not using and IDE with tools built in. NetBeans has out of the box functionality for Gradle and you can pull in groovy with that. But if you want to just use Groovy standalone then sdkman really does the job fine.