Skip to content

Instantly share code, notes, and snippets.

@lamvann
Created May 24, 2020 18:57
Show Gist options
  • Save lamvann/5b0a1b99f1e17d433ade314ef11d788c to your computer and use it in GitHub Desktop.
Save lamvann/5b0a1b99f1e17d433ade314ef11d788c to your computer and use it in GitHub Desktop.
The ideal structure of a Gradle file only declares the dependencies it needs.
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:${getKotlinPluginVersion()}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5")
implementation("com.jakewharton.threetenabp:threetenabp:1.2.3")
implementation("com.squareup.okhttp3:okhttp:4.5.0")
testImplementation("junit:junit:4.13")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.5")
testImplementation("io.mockk:mockk:1.9.3")
testImplementation("org.amshove.kluent:kluent-android:1.61")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment