Skip to content

jbock-java/jbock-maven-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

See also

About

Example usage of the jbock annotation processor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published