| title | Setup |
|---|---|
| parent | Getting Started |
| nav_order | 1 |
| permalink | /getting-started/setup/ |
| description | Set up the dependency, verifier, and VS Code extension to start using LiquidJava. |
To use the LiquidJava annotations, add the liquidjava-api dependency to your Java project:
<dependency>
<groupId>io.github.liquid-java</groupId>
<artifactId>liquidjava-api</artifactId>
<version>{{ site.liquidjava_api_version }}</version>
</dependency>repositories {
mavenCentral()
}
dependencies {
implementation 'io.github.liquid-java:liquidjava-api:{{ site.liquidjava_api_version }}'
}- Visual Studio Code with the Language Support for Java by Red Hat extension
- A Java project with the
liquidjava-apidependency
- Install the LiquidJava VS Code extension
- Open a Java project with the
liquidjava-apidependency
The extension then provides real-time diagnostics, syntax highlighting for refinements, and more.
You can find more about the extension [here]({{ '/vscode-extension/' | relative_url }}).
If you prefer to run the verifier directly from the terminal, you can use the command-line interface.
- Java 20+
- Maven 3.6+
- A Java project with the
liquidjava-apidependency
git clone {{ site.liquidjava_repo_url }}
cd liquidjava
mvn clean install
./liquidjava /path/to/your/projectThis runs the verifier on your project and prints any errors to the console.
You can find more about the command-line interface [here]({{ '/command-line-interface/' | relative_url }}).