All Projects → apache → Groovy

apache / Groovy

Licence: apache-2.0
Apache Groovy: A powerful multi-faceted programming language for the JVM platform

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects
HTML
75241 projects
CSS
56736 projects
ANTLR
299 projects
shell
77523 projects

Projects that are alternatives of or similar to Groovy

Idiolisp
A statically typed functional programming language
Stars: ✭ 78 (-98.21%)
Mutual labels:  compiler, functional-programming
Grain
The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾
Stars: ✭ 2,199 (-49.55%)
Mutual labels:  compiler, functional-programming
Faust
Functional programming language for signal processing and sound synthesis
Stars: ✭ 1,360 (-68.8%)
Mutual labels:  compiler, functional-programming
Grin
GRIN is a compiler back-end for lazy and strict functional languages with whole program optimization support.
Stars: ✭ 834 (-80.87%)
Mutual labels:  compiler, functional-programming
Silt
An in-progress fast, dependently typed, functional programming language implemented in Swift.
Stars: ✭ 217 (-95.02%)
Mutual labels:  compiler, functional-programming
Cfl
a Compileable statically typed Functional programming Language
Stars: ✭ 7 (-99.84%)
Mutual labels:  compiler, functional-programming
Ghc Grin
GRIN backend for GHC
Stars: ✭ 123 (-97.18%)
Mutual labels:  compiler, functional-programming
Felix
The Felix Programming Language
Stars: ✭ 609 (-86.03%)
Mutual labels:  compiler, functional-programming
Mlkit
Standard ML Compiler and Toolkit
Stars: ✭ 183 (-95.8%)
Mutual labels:  compiler, functional-programming
Potigol
Linguagem Potigol - Linguagem de programação funcional moderna para iniciantes - A Functional Programming Language for Beginners
Stars: ✭ 179 (-95.89%)
Mutual labels:  compiler, functional-programming
Ring
Innovative and practical general-purpose multi-paradigm language
Stars: ✭ 716 (-83.57%)
Mutual labels:  compiler, functional-programming
Never
Never: statically typed, embeddable functional programming language.
Stars: ✭ 248 (-94.31%)
Mutual labels:  compiler, functional-programming
Mlton
The MLton repository
Stars: ✭ 683 (-84.33%)
Mutual labels:  compiler, functional-programming
Jhc Components
JHC Haskell compiler split into reusable components
Stars: ✭ 55 (-98.74%)
Mutual labels:  compiler, functional-programming
Clio
Clio is a functional, parallel, distributed programming language.
Stars: ✭ 555 (-87.27%)
Mutual labels:  compiler, functional-programming
Bqn
An APL-like programming language. Self-hosted!
Stars: ✭ 100 (-97.71%)
Mutual labels:  compiler, functional-programming
Scala
Scala 2 compiler and standard library. For bugs, see scala/bug
Stars: ✭ 13,573 (+211.38%)
Mutual labels:  functional-programming, jvm-languages
Haxe
Haxe - The Cross-Platform Toolkit
Stars: ✭ 4,665 (+7.02%)
Mutual labels:  compiler, jvm-languages
Typelang
🌳 A tiny language interpreter implemented purely in TypeScript's type-system
Stars: ✭ 149 (-96.58%)
Mutual labels:  compiler, functional-programming
Fsharp
The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
Stars: ✭ 2,966 (-31.96%)
Mutual labels:  compiler, functional-programming

Apache Groovy

medium

jdk Apache License 2 teamcity build status travis build status maintainability rating follow on Twitter

Groovy is a powerful multi-faceted programming language for the JVM platform. It supports a spectrum of programming styles incorporating features from dynamic languages such as optional and duck typing, but also static compilation and static type checking at levels similar to or greater than Java through its extensible static type checker. It aims to greatly increase developer productivity with many powerful features but also a concise, familiar and easy to learn syntax.

It integrates smoothly with any Java class or library, and immediately delivers to your application powerful capabilities, including scripting support, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.

Downloading

Distribution links are on the download page.

Maven, Gradle and Ivy dependency declaration snippets are available on specific files of a particular module.

Obtaining the Source

You don’t need the source code to use Apache Groovy but if you wish to explore its inner workings or build it for yourself there are two ways to obtain the source files.

Checking out from Version Control

Apache Groovy uses Git. The official Git repository is at:

https://gitbox.apache.org/repos/asf/groovy.git

And a mirror is hosted on Github:

https://github.com/apache/groovy

The Github mirror is read-only and provides convenience to users and developers to explore the code and for the community to accept contributions via Github Pull Requests.

Simply git clone the repo (or the repo you forked via the github website) and you will have the complete source.

Unpacking the src distribution

Alternatively, you can download the source distribution and unpack it.

If obtaining the source from the source distribution and you intend to build from source, you also need to download and install Gradle and use it to execute one bootstrap step.

Bootstrapping Gradle

As mentioned in the previous paragraph, if you download the source distribution you need to bootstrap Gradle. This isn’t needed if you clone from the Github repo.

Each version of Groovy is built and tested using a specific version of Gradle. That version is specified by the gradle_version property defined in the gradle.properties file within the root directory. Luckily you shouldn’t need to know that version and, after bootstrapping, you should use the gradlew command which will ensure the correct version is always used.

The version of Gradle used for the bootstrap step has some flexibility though in general you might need to download a version similar to the version of Groovy the build is expecting.

To bootstrap Gradle, at the top directory of your unpacked source, run the command:

gradle -p bootstrap
Note
At this point, the Gradle wrapper should be set up and from now on you should use the gradlew command instead of gradle. (On Unix-like systems, use ./gradlew).

Building from Source

To build you will need:

To build everything using Gradle, use the following command (./gradlew on Unix-like systems):

gradlew clean dist
Note
The gradlew command automatically downloads the correct Gradle version if needed, you do not need to download it first.

This will generate a distribution similar to the zip you can download on the Groovy download page.

To build everything and launch unit tests, use:

gradlew test

If you want to launch one unit test, use this. <TestClassName> is like groovy.GroovyMethodsTest.

gradlew :test --tests <TestClassName>

To build from IntelliJ IDEA:

gradlew jar idea

Then open the generated project in IDEA.

To build from Eclipse:

gradlew jar eclipse

Then open the generated project and the generated subprojects in Eclipse. But be aware that Eclipse tends to be more limited in its ability to reproduce a Gradle build structure. The generated project files may contain a circular dependency which may or may not prevent Eclipse from using them. It depends on the Eclipse version, if this is an issue or not.

To build the documentation (Groovy Language Documentation):

gradlew asciidoc

All code samples of the documentation guide are pulled from actual test cases. To run a single documentation test case, take for example src/spec/test/semantics/PowerAssertTest.groovy

gradlew testSinglePowerAssertTest
Note
The omission of package name: class is semantics.PowerAssertTest but only PowerAssertTest is added to testSingle.

Verifying dependencies

To generate the missing verification metadata when add/bump dependencies:

gradlew --write-verification-metadata pgp,sha512 --dry-run

then compare verification-metadata.xml with the generated verification-metadata.dryrun.xml, and merge the missing verification metadata into verification-metadata.xml after the result of the above operation is reviewed.

Continuous Integration Server

The official CI server runs here and is sponsored by JetBrains.

Java Profiler

Groovy core team tunes performance through YourKit Java Profiler, which is sponsored by YourKit.

Friends of Groovy Open Collective

As an independent initiative, we have set up an open collective for Groovy:

This initiative is designed to complement the Apache project and the many contributions we get from our great community and supporters.

  • Thank you to our Silver Sponsors:

silver sponsor

  • Thank you to our Bronze Sponsors:

bronze sponsor

  • Thank you to our backers (donating monthly):

backer

  • Thank you to all our backers:

backers

Stargazers over time

Stargazers over time

License

Groovy is licensed under the terms of the Apache License, Version 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].