-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.gradle
50 lines (44 loc) · 1.46 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
plugins {
id("com.android.library")
id("kotlin-android")
id("com.yelp.codegen.plugin")
id("kotlin-kapt")
}
android {
compileSdkVersion = 31
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
// Moshi + OkHttp + Retrofit
implementation "com.squareup.moshi:moshi:1.12.0"
implementation "com.squareup.moshi:moshi-adapters:1.12.0"
implementation "com.squareup.okhttp3:okhttp:3.12.13"
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.12.0"
// Date Support via Desugaring
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
// Testing Dependencies
testImplementation "junit:junit:4.13.2"
testImplementation "com.squareup.okhttp3:mockwebserver:3.12.13"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.3"
}
generateSwagger {
platform = "kotlin-coroutines"
packageName = "com.yelp.codegen.samples.kotlincoroutines"
specName = "kotlincoroutines"
inputFile = file("../sample_specs.json")
outputDir = file("./src/main/java/")
}
repositories {
mavenCentral()
}