Skip to content

Commit b108c46

Browse files
authored
Update README.md with gradle
1 parent 16913a2 commit b108c46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Uses Annotation processing to automatically add `META-INF/services` entries for
77

88
## Usage
99
### 1. Add dependency:
10+
11+
#### Maven:
1012
```xml
1113
<dependency>
1214
<groupId>io.avaje</groupId>
@@ -17,6 +19,12 @@ Uses Annotation processing to automatically add `META-INF/services` entries for
1719
</dependency>
1820
```
1921

22+
#### Gradle:
23+
```kotlin
24+
compileOnly("io.avaje:avaje-spi-service:${spi.version}")
25+
annotationProcessor("io.avaje:avaje-spi-service:${spi.version}")
26+
```
27+
2028
When working with Java modules you need to add the annotation module as a static dependency.
2129
```java
2230
module my.module {

0 commit comments

Comments
 (0)