Configuration

This part of the documentation is intended for developers looking for information on the various configuration options that YoSql provides.

By default, YoSQL generates code that uses all features of the latest supported Java release without using any non-JDK classes. In case you don’t want to use a particular feature, use the relevant configuration option to disable it. We recommend to start with an empty configuration and adapting that to your needs, using as many configuration options as required.

Tooling

Depending on your tooling, YoSQL can be configured as explained in the following sections.

Maven

In order to use YoSQL together with Maven, take a look at the tooling documentation for Maven.

<build>
    <plugins>
        ...
        <plugin>
            <groupId>wtf.metio.yosql</groupId>
            <artifactId>yosql-tooling-maven</artifactId>
            <version>2021.4.21</version>
            <configuration>
                <configOption>configValue</configOption>
            </configuration>
        </plugin>
        ...
    </plugins>
</build>

Gradle

In order to use YoSQL together with Gradle, take a look at the tooling documentation for Gradle.

plugins {
  java
  id("wtf.metio.yosql") version "2021.4.21"
}

yosql {
  configGroup {
    configOption.set(configValue)
  }
}
plugins {
  id "java"
  id "wtf.metio.yosql" version "2021.4.21"
}

yosql {
  configGroup {
    configOption = configValue
  }
}

Bazel

In order to use YoSQL together with Bazel, take a look at the tooling documentation for Bazel.

CLI

In order to use YoSQL on the command line, take a look at the tooling documentation for CLI.

$ yosql --config-group-config-option=configValue

As long as the name of the config option is unique across all configuration groups, you can use the shorter form:

$ yosql --config-option=configValue

Pages