Skip to content

Commit d2b9ea9

Browse files
authored
Merge pull request #85 from JT122406/master
Add to README.md Kotlin DSL
2 parents c36487a + cc01843 commit d2b9ea9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,21 @@ interpreted by IDEs and static analysis tools to improve code analysis.
1313

1414
## Using the annotations
1515
The annotations are published on [Maven Central](https://repo1.maven.org/maven2/org/jetbrains/annotations/). To add a dependency
16-
using gradle write the following in the `build.gradle` file:
16+
using gradle write the following in the
17+
`build.gradle` file (Goovy DSL)
1718
```
1819
dependencies {
1920
compileOnly 'org.jetbrains:annotations:24.0.0'
2021
}
2122
23+
```
24+
25+
or in the `build.gradle.kts` file (Kotlin DSL)
26+
```
27+
dependencies {
28+
compileOnly("org.jetbrains:annotations:24.0.0")
29+
}
30+
2231
```
2332
To add a dependency using Maven, write the following in `pom.xml`:
2433
```xml

0 commit comments

Comments
 (0)