How to install Apache Groovy Programming Language
on Red Hat Enterprise Linux

Apache Groovy Programming Language

Apache Groovy Programming Language

Apache Groovy (apache-groovy) Verified account
  • Apache Groovy (apache-groovy) Verified account
  • Development

The Apache Groovy programming language - A multi-faceted language for the Java platform

What is Groovy?

Apache Groovy is a powerful, multi-paradigm programming language for the Java platform aimed at improving developer productivity thanks to a concise, familiar and easy to learn syntax. It integrates smoothly with any Java libraries, and delivers powerful enhancements and productivity features, including scripting capabilities, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.

Why use Groovy?

Groovy is like a super version of Java:

  • It supports most Java syntax but allows simpler syntax for many constructs
  • It supports all Java libraries but provides many extensions and its own productivity libraries
  • It has a dynamic nature like Python, which means that it is very powerful, easy to learn, and productive
  • It optionally has a static nature like Java and Kotlin, which makes it fast and provides extra type checking when desired
  • It has first-class functional, stream processing and immutability support, meaning that it offers features similar to Scala and can offer many advantages when working in parallel processing or clustered environments
  • It has great extensibility for the language and tooling
  • It is free and open source and has a large community of users and developers around the world.

Requirements

Groovy 2.5.x (3.0.x) requires Java 7 (8) or a later runtime environment to be installed. Depending on what you are planning to do, you may need a Java Development Kit rather than just a Java Runtime Environment.

Details for Apache Groovy Programming Language

License
Apache-2.0
Last updated
8 August 2019

Enable snaps on Red Hat Enterprise Linux and install Apache Groovy Programming Language

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

Enable snapd

Snap is available for Red Hat Enterprise Linux (RHEL) 7, from the 7.6 release onward, from the Extra Packages for Enterprise Linux (EPEL) repository.

It is not yet available in the EPEL 8 repository, and consequently, not yet available for RHEL 8 unless you build the RPM yourself.

The EPEL repository can be added to your system with the following command:

Adding the optional and extras repositories is also recommended:

sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" sudo yum update

Snap can now be installed as follows:

Once installed, the systemd unit that manages the main snap communication socket needs to be enabled:

To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:

Either log out and back in again or restart your system to ensure snap’s paths are updated correctly.

Install Apache Groovy Programming Language

To install Apache Groovy Programming Language, simply use the following command:

Other popular snaps…

See more...
See more in Featured

More things to do…

Get the snap store

Browse and find snaps from the convenience of your desktop using the snap store snap.

Learn more about snaps

Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.