Skip to content

aalmiray/modular-tiles

Repository files navigation

Modular Tiles

A sample modular JavaFX application configured with Layrry.

Modular JavaFX tiles based on Layrry

Build

Prerequisites
  • JDK 11

  • Maven 3.6.3 or Gradle 6+ (project includes wrappers for each)

  • Layrry 1.0.0.Alpha1

  • jbang (optional)

Download Layrry from https://github.com/moditect/layrry/releases/tag/1.0.0.Alpha1, or install it via SDKMAN!, or build it from source. JDK 11 is needed to build Layrry.

$ git clone https://github.com/moditect/layrry.git
$ cd layrry
$ mvn install

Once Layrry is installed, change back to where you cloned this repository.

Maven
$ ./mvnw install
Gradle
$ ./gradlew assemble publishToMavenLocal

Plugins will be placed under staging/plugins-prepared at the root.

Run

Run it directly from the layrry-launcher JAR (assuming Layrry repo was cloned adjacent to this repo)

$ java -jar ../../layrry/layrry-launcher/target/layrry-launcher-1.0.0.Alpha1-all.jar --layers-config staging/layers.toml --properties staging/versions.properties
Binary

If you installed the binary distribution from the release page or from SDKMAN!

$ layrry --layers-config staging/layers.toml --properties staging/versions.properties
JBang
$ jbang layrry@moditect --layers-config staging/layers.toml --properties staging/versions.properties

The plugins directory is located at staging. Copy plugins from staging/plugins-prepared.

$ cp -r staging/plugins-prepared/tile-* staging/plugins

Remove and add plugins from staging/plugins at any time to see dynamic behavior.