Awesome
jbock-maven-example
Add this dependency:
<dependency>
<groupId>io.github.jbock-java</groupId>
<artifactId>jbock</artifactId>
<version>5.19</version>
</dependency>
Then configure the annotation processor:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<dependency>
<groupId>io.github.jbock-java</groupId>
<artifactId>jbock-compiler</artifactId>
<version>5.19</version>
</dependency>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
Add this to module-info.java
:
requires net.jbock;
Run it
./mvnw clean package
./mvnw dependency:copy-dependencies -DincludeScope=runtime
./cp --help
./cp 1 -s2 2