Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.81 KB

File metadata and controls

72 lines (51 loc) · 1.81 KB
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.

Setup

API Dependency

To use the LiquidJava annotations, add the liquidjava-api dependency to your Java project:

Maven

<dependency>
    <groupId>io.github.liquid-java</groupId>
    <artifactId>liquidjava-api</artifactId>
    <version>{{ site.liquidjava_api_version }}</version>
</dependency>

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation 'io.github.liquid-java:liquidjava-api:{{ site.liquidjava_api_version }}'
}

VS Code Extension

Requirements

Steps

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 }}).

Command-Line Interface

If you prefer to run the verifier directly from the terminal, you can use the command-line interface.

Requirements

  • Java 20+
  • Maven 3.6+
  • A Java project with the liquidjava-api dependency

Steps

git clone {{ site.liquidjava_repo_url }}
cd liquidjava
mvn clean install
./liquidjava /path/to/your/project

This 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 }}).