Installation

Coat consists of two separate jars.

  • The annotation processor to generate the config classes. Only needed at compile time.
  • The runtime package containing the annotations and the default type converters. Needed at runtime.

To use Coat in a maven based project use the following maven coordinates:

 1    <!-- Contains the converters and base classes. Needed at runtime. -->
 2    <dependency>
 3      <groupId>de.poiu.coat</groupId>
 4      <artifactId>coat-runtime</artifactId>
 5      <version>2.0.2</version>
 6    </dependency>
 7
 8    <build>
 9      <plugins>
10        <groupId>org.apache.maven.plugins</groupId>
11        <artifactId>maven-compiler-plugin</artifactId>
12        <configuration>
13          <annotationProcessorPaths>
14            <!-- Specifies the Coat annotation processor. Required from Java 22 onwards. -->
15            <path>
16              <groupId>de.poiu.coat</groupId>
17              <artifactId>coat-processor</artifactId>
18              <version>2.0.2</version>
19            </path>
20          </annotationProcessorPaths>
21      </plugins>
22    </build>

When using Coat in an application that uses Java modules add this to your module-info.java:

1requires de.poiu.coat.runtime;