Skip to content

deduper/mrjar.todo.modules.demo

Repository files navigation

mrjar.todo.modules.demo

Demonstrates how to apply the mrJar Gradle plugin to resolve split packages in a JPMS-structured project.

Requirements

  1. JDK 13
    • the current version 0.0.16 of the mrJar plugin does not support JDK 14+ at the moment1
  2. Because of how the mrJar plugin is implemented, it's mandatory to run Gradle with the --enable-preview option when executing builds that apply the plugin. See the example in the Steps to build

Steps to build

  1. Download or clone this demo
  2. In a terminal, cd to your download/clone location
  3. After ensuring that you're using JDK 13, execute the following command within the root directory of the project:
./gradlew -Dorg.gradle.jvmargs="--enable-preview" check bootJar
  1. Observe…
BUILD SUCCESSFUL in 43 seconds
…
  1. Examine one of the successfully-assembled modular jars with the following command…
$ jar -f {{%your.path.to%}}/mrjar.todo.modules.demo/todo-domain/build/libs/todo.modules.demo.todo.domain-0.0.1-SNAPSHOT.jar --describe-module
  1. Observe…
todo.modules.demo.todo.domain jar:file:///…/mrjar.todo.modules.demo/todo-domain/build/libs/todo.modules.demo.todo.domain-0.0.1-SNAPSHOT.jar/!module-info.class
exports works.hop.todo.domain.config
exports works.hop.todo.domain.model
exports works.hop.todo.domain.repository
exports works.hop.todo.domain.service
requires java.base mandated
requires lombok
requires spring.beans
requires spring.context
requires spring.data.commons
requires spring.data.relational

Please report any and all failures of any of the above steps in this project's Issues section.






1 I have it on good authority that the mrJar plugin is in the process of being upgraded with JDK14+ support. Release of v0.0.17 is expected to be announced within the next 1-2 days.

About

Demonstrates how to apply the mrJar Gradle plugin to resolve split packages in a JPMS-structured project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages