-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
81 lines (66 loc) · 2.03 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath libs.android.gradlePlugin
classpath libs.kotlin.gradlePlugin
classpath libs.kotlin.serialization.plugin
classpath libs.swaggerCodegen
classpath libs.dokka
classpath libs.spotless
classpath libs.gradleVersionsPlugin
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
subprojects {
afterEvaluate {
if(it.hasProperty('android')) {
android {
compileSdkVersion 34
defaultConfig {
minSdkVersion 21
targetSdkVersion 34
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
sourceSets['main'].java.srcDir('src/main/kotlin')
}
}
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
tasks.withType(DokkaTask).configureEach {
dokkaSourceSets.configureEach {
reportUndocumented.set(true)
skipEmptyPackages.set(true)
skipDeprecated.set(true)
jdkVersion.set(17)
// Add Android SDK packages
noAndroidSdkLink.set(false)
// AndroidX docs
externalDocumentationLink {
url.set(new URL("https://developer.android.com/reference/"))
packageListUrl.set(new URL("https://developer.android.com/reference/androidx/package-list"))
}
}
}
// Exclude 'content' module as it contains generated code
if (it.name != 'content') {
apply from: "$rootDir/config/spotless.gradle"
}
}
apply from: "$rootDir/config/dependencyUpdates.gradle"