build: convert to Gradle Kotlin DSL

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-11-06 17:28:26 +05:30
parent 9839bf4014
commit 1e2fef884f
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
19 changed files with 514 additions and 230 deletions

View file

@ -1,14 +0,0 @@
plugins {
id 'kotlin-kapt'
}
dependencies {
implementation project(":model")
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-moshi:$retrofit_version"
kaptTest "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"
testImplementation "junit:junit:$junit_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
//noinspection GradleDependency
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp_version"
}

View file

@ -0,0 +1,16 @@
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
`lobsters-plugin`
}
dependencies {
implementation(project(":model"))
implementation(Dependencies.ThirdParty.Retrofit.lib)
implementation(Dependencies.ThirdParty.Retrofit.moshi)
kaptTest(Dependencies.ThirdParty.Moshi.codegen)
testImplementation(Dependencies.Testing.junit)
testImplementation(Dependencies.Kotlin.Coroutines.core)
testImplementation(Dependencies.Testing.mockWebServer)
}