Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 committed Dec 14, 2024
1 parent 79ac535 commit dc0f1ea
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,7 @@
# jbock-maven-example

Add this dependency:

````xml
<dependency>
<groupId>io.github.jbock-java</groupId>
<artifactId>jbock</artifactId>
<version>5.19</version>
</dependency>
````

Then configure the annotation processor:

````xml
<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`:

````java
requires net.jbock;
````

### Run it

````sh
./mvnw clean package
./mvnw dependency:copy-dependencies -DincludeScope=runtime
./mvnw clean package dependency:copy-dependencies -DincludeScope=runtime
./cp --help
./cp 1 -s2 2
````
Expand Down

0 comments on commit dc0f1ea

Please sign in to comment.