Add Gradle Kotlin DSL for dependencies (#719)

* Add Kotlin DSL for dependencies

* Use the "Kotlin" sytnax
This commit is contained in:
Stefan M 2018-11-06 09:05:15 +01:00 committed by Zac Sweers
parent 5c41565f39
commit cf22bf9bce

View file

@ -504,8 +504,8 @@ The reflection adapter requires the following additional dependency:
</dependency>
```
```groovy
implementation 'com.squareup.moshi:moshi-kotlin:1.7.0'
```kotlin
implementation("com.squareup.moshi:moshi-kotlin:1.7.0")
```
Note that the reflection adapter transitively depends on the `kotlin-reflect` library which is a
@ -540,8 +540,8 @@ add the following to your build to enable the annotation processor:
</dependency>
```
```groovy
kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.7.0'
```kotlin
kapt("com.squareup.moshi:moshi-kotlin-codegen:1.7.0")
```
You must also have the `kotlin-stdlib` dependency on the classpath during compilation in order for
@ -571,8 +571,8 @@ Download [the latest JAR][dl] or depend via Maven:
</dependency>
```
or Gradle:
```groovy
implementation 'com.squareup.moshi:moshi:1.7.0'
```kotlin
implementation("com.squareup.moshi:moshi:1.7.0")
```
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].