-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild.gradle.kts
51 lines (45 loc) · 1.41 KB
/
build.gradle.kts
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
51
plugins {
id("com.android.library")
kotlin("android")
id("com.yelp.codegen.plugin")
}
android {
compileSdkVersion(31)
defaultConfig {
minSdkVersion(21)
targetSdkVersion(31)
}
compileOptions {
isCoreLibraryDesugaringEnabled = 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")
implementation("com.squareup.retrofit2:adapter-rxjava2:2.9.0")
// Date Support via Desugaring
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
// RxJava
implementation("io.reactivex.rxjava2:rxjava:2.2.21")
implementation("io.reactivex.rxjava2:rxandroid:2.1.1")
}
generateSwagger {
platform.set("kotlin")
packageName.set("com.yelp.codegen.samples")
specName.set("sample_specs")
specVersion.set("1.0.0")
inputFile.set(file("../sample_specs.json"))
outputDir.set(project.layout.projectDirectory.dir("./src/main/java/"))
features {
headersToRemove.add("Accept-Language")
}
}
repositories {
mavenCentral()
}