A functional library for Java 8+ that provides persistent data types and functional control structures.
Java Scala
Pull request Compare This branch is 1560 commits behind javaslang:master.
Latest commit d0e48c9 Dec 22, 2015 @danieldietrich danieldietrich Merge pull request #970 from ruslansennov/tests
RBTree signatures
Failed to load latest commit information.
.travis missing script Oct 12, 2015
generator Generator fixed #967 Dec 22, 2015
src-gen fixed eclipse warnings Dec 21, 2015
src RBTree signatures changed Dec 22, 2015
.gitignore Detailed algebraic data types Functor and Monad. Nov 22, 2014
.travis.yml Moving from coveralls.io to codecov.io. Towards #764 Nov 5, 2015
CHANGELOG.md Added version 1.2.2 to changelog May 2, 2015
CONTRIBUTING.md updated idea settings Oct 7, 2015
LICENSE Updated license date Sep 18, 2015


Maven Central Build Status Coverage Status Gitter Chat


Feature-rich & self-contained functional programming in Java™ 8 and above.

There's also a blog.

Using Javaslang

Projects that include Javaslang need to target Java 1.8 at minimum.

The .jar is available at Maven Central.


compile "com.javaslang:javaslang:2.0.0-RC2"




Because Javaslang does not depend on any libraries (other than the JVM) you can easily add it as standalone .jar to your classpath.

Using Developer Versions

Developer versions can be found here.

Ensure that your ~/.m2/settings.xml contains the following:


How to Contribute

Javaslang needs to be compiled with jdk 1.8.0_40 at minimum, which fixes many type inference bugs of the java compiler.

Fork the GitHub, send a pull request and keep your fork in sync with the upstream repository.

Refer to CONTRIBUTING.md for guidelines.

Useful Maven Goals

  • Executing tests: mvn clean test
  • Executing doclint: mvn javadoc:javadoc
  • Executing code coverage report: mvn -P ci clean test jacoco:report
  • Create -javadoc.jar: mvn javadoc:jar
  • Create -source.jar: mvn source:jar
  • Update version properties: mvn versions:update-properties
  • Check for new plugin version: mvn versions:display-plugin-updates

Release Management

See http://central.sonatype.org/pages/ossrh-guide.html

Sonatype-Nexus specific maven configuration: ~/.m2/settings.xml


Deploy a snapshot

mvn clean deploy

The snaphot is deployed to https://oss.sonatype.org/content/repositories/snapshots/

Prepare a release

mvn release:clean
mvn release:prepare

Stage a release

mvn release:perform