Skip to content

Commit

Permalink
Merge pull request #85 from JT122406/master
Browse files Browse the repository at this point in the history
Add to README.md Kotlin DSL
  • Loading branch information
amaembo committed Feb 13, 2023
2 parents c36487a + cc01843 commit d2b9ea9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ interpreted by IDEs and static analysis tools to improve code analysis.

## Using the annotations
The annotations are published on [Maven Central](https://repo1.maven.org/maven2/org/jetbrains/annotations/). To add a dependency
using gradle write the following in the `build.gradle` file:
using gradle write the following in the
`build.gradle` file (Goovy DSL)
```
dependencies {
compileOnly 'org.jetbrains:annotations:24.0.0'
}
```

or in the `build.gradle.kts` file (Kotlin DSL)
```
dependencies {
compileOnly("org.jetbrains:annotations:24.0.0")
}
```
To add a dependency using Maven, write the following in `pom.xml`:
```xml
Expand Down

0 comments on commit d2b9ea9

Please sign in to comment.