Getting Started
This guide will help you get started with LionWeb JVM with Java, from installation to creating your first project.
Prerequisites
- Java 11 or later for using the library (versions 11, 17, 21, and 25 are tested and supported). Java 8 support was dropped in version 1.4.0.
- Java 17 is required for building.
Installation
Note that even if you want to use the 2023.1 specs you can use a recent version of LionWeb Java. All versions supports also previous versions of the specs.
Using Gradle
Add the following to your build.gradle or build.gradle.kts:
dependencies {
implementation("io.lionweb:lionweb-2024.1-core:$lionwebVersion")
}
Using Maven
Add the following dependency to your pom.xml:
<dependency>
<groupId>io.lionweb</groupId>
<artifactId>lionweb-2024.1-core</artifactId>
<version>${lionwebVersion}</version>
</dependency>
Or this to your build.gradle.kts:
implementation("io.lionweb:lionweb-2024.1-core:${lionwebVersion}")
Usage Schema
The typical usage consists in:
- Authoring a new Language or retrieving it
- Build models (i.e., trees of LionWeb Nodes) according to the Language(s) defined or used
- Serialize/De-serialize models for storage and for interoperability with other tools
- Relay on a LionWeb-compliant repository for storing models and for real-time collaboration with other clients