From cf22bf9bcee8f1748b6460c7ac8ce7cb682904ec Mon Sep 17 00:00:00 2001 From: Stefan M Date: Tue, 6 Nov 2018 09:05:15 +0100 Subject: [PATCH] Add Gradle Kotlin DSL for dependencies (#719) * Add Kotlin DSL for dependencies * Use the "Kotlin" sytnax --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index afc9628..635b287 100644 --- a/README.md +++ b/README.md @@ -504,8 +504,8 @@ The reflection adapter requires the following additional 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: ``` -```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: ``` 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].