Installation of JSQLFormatter

JSQLFormatter is published to Maven Central under the group com.manticore-projects.jsqlformatter. From release 5.4 it is licensed under the Apache License 2.0.

As a library

<dependency>
    <groupId>com.manticore-projects.jsqlformatter</groupId>
    <artifactId>jsqlformatter</artifactId>
    <version>5.3</version>
</dependency>
<repositories>
    <repository>
        <id>jsqlformatter-snapshots</id>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <url>https://central.sonatype.com/repository/maven-snapshots/</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.manticore-projects.jsqlformatter</groupId>
    <artifactId>jsqlformatter</artifactId>
    <version>5.4-SNAPSHOT</version>
</dependency>
repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.manticore-projects.jsqlformatter:jsqlformatter:5.3'
}
repositories {
    maven {
        url = uri('https://central.sonatype.com/repository/maven-snapshots/')
    }
}

dependencies {
    implementation 'com.manticore-projects.jsqlformatter:jsqlformatter:5.4-SNAPSHOT'
}

Note

The legacy s01.oss.sonatype.org snapshot host has been decommissioned. If your build still points at it, update to the URL above.

Download

Static binaries

Direct download links

Package

File

Size

Java stable release

JSQLFormatter-5.3.jar

80 kB

Java development snapshot

JSQLFormatter-5.4-SNAPSHOT.jar

80 kB

Java fat JAR, development snapshot

JSQLFormatter-5.4-SNAPSHOT-all.jar

15 MB

The slim JARs expect JSQLParser and its dependencies on the classpath. The fat JAR bundles everything and runs standalone – use that one for the CLI unless you are managing dependencies yourself.

Note

On macOS, grant an exception for a blocked app by clicking Open Anyway in the General pane of Security & Privacy preferences.

Native dynamic libraries

Coming soon.

Build from source

git clone https://github.com/manticore-projects/jsqlformatter.git
cd jsqlformatter
./gradlew publishToMavenLocal

This installs the artifact into your local Maven repository, where a mavenLocal() repository declaration will pick it up.