Skip to content

Commit

Permalink
Fix documentation on Gradle usage (#133)
Browse files Browse the repository at this point in the history
Adds missing `compileOnly`
  • Loading branch information
douira authored Oct 16, 2022
1 parent 76119e0 commit 8198418
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Jabel: initialized.
Use the following snippet to add Jabel to your Gradle build:
```gradle
dependencies {
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.1'
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2'
}
// Add more tasks if needed, such as compileTestJava
Expand Down Expand Up @@ -153,6 +153,11 @@ public class com.example.JabelExample
### Gradle 7 and newer
Gradle 7 supports toolchains and makes it extremely easy to configure everything:
```gradle
dependencies {
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2'
compileOnly 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2'
}
configure([tasks.compileJava]) {
sourceCompatibility = 16 // for the IDE support
options.release = 8
Expand Down

0 comments on commit 8198418

Please sign in to comment.