-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild.gradle
53 lines (47 loc) · 1.43 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
51
52
53
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"
implementation "com.squareup.retrofit2:adapter-rxjava2: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'
// RxJava
implementation "io.reactivex.rxjava2:rxjava:2.2.21"
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
}
generateSwagger {
platform = "kotlin"
packageName = "com.yelp.codegen.integrations"
specName = "integration"
specVersion = "1.0.0"
inputFile = file("../sample_specs.json")
outputDir = file("./src/main/java/")
features {
headersToRemove.add("Accept-Language")
}
}
repositories {
mavenCentral()
}