Java Modules - are they common and should we use them?

This page summarizes the projects mentioned and recommended in the original post on /r/java

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • maven-jpackage-template

    Sample project illustrating building nice, small cross-platform JavaFX or Swing desktop apps with native installers while still using the standard Maven dependency system.

  • I kind of need this stuff to make it easier to build nice small jpackage installer packages. I have a workaround template project right now that works pretty well, but the user has to manually add modules. If I add a plugin that parsed the Maven dependency tree to find modules it would "just work" for module declarations without having to tweak the pom.xml.

  • moditect-gradle-plugin

    A ModiTect plug-in for the Gradle build system

  • In this case, you probably will need to use https://github.com/moditect/moditect-gradle-plugin to add the module-info to the dependencies. While they are automatic modules you cannot make a module require an explicit library. Using the moditect plugin you can add the module-info to other jars and add the explicit requires.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • layrry

    A Runner and API for Layered Java Applications

  • github.com/moditect/layrry

  • moditect

    Tooling for the Java Module System

  • You can use the https://github.com/moditect/moditect maven plugin to add the module-info to the third-party jars

  • jtoolprovider-plugin

    This Maven Plugin does two things. First, it automatically transforms your Maven dependency graph into Java modules. Second, it bridges Maven and built-in Java tools like jdeps, jlink, and jpackage.

  • There are plugins coming along that help out, e.g. the moditect stuff and the jtoolprovider plugin I wrote (bridges Maven and jdeps/jlink/jpackage/etc).

  • piranha

    Piranha - a modern cloud runtime (by piranhacloud)

  • I'm aware of the consequences. I have added module-info to our servlet container, https://github.com/piranhacloud/piranha/, and we use a lot of external dependencies. And most of them aren't modules but it works ;)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts