-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.8 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
}
}
plugins {
id 'com.android.application' version '8.1.0' apply false
id 'com.android.library' version '8.1.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
id "com.diffplug.spotless" version "6.11.0"
id 'androidx.navigation.safeargs' version '2.5.3' apply false
id 'com.google.dagger.hilt.android' version '2.44' apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'org.jetbrains.kotlinx.kover' version '0.6.1'
id "org.jetbrains.dokka" version "2.0.0"
}
subprojects {
if (name != "forage-android") return
apply plugin: 'org.jetbrains.dokka'
tasks.named("dokkaHtml", org.jetbrains.dokka.gradle.DokkaTask.class) {
outputDirectory.set(file("${rootDir}/reference-docs"))
String dokkaBaseConfiguration = """
{
"footerMessage": "© 2023–2025 <a href=\\"https://www.joinforage.com/\\"style=\\"color: inherit; text-decoration: none;\\">Forage Technology Corporation</a>.",
"separateInheritedMembers": true
}
"""
pluginsMapConfiguration.set(
["org.jetbrains.dokka.base.DokkaBase": dokkaBaseConfiguration]
)
}
}
spotless {
kotlin {
target '**/src/**/*.kt', '**/src/**/*.kts'
ktlint()
}
kotlinGradle {
target '*.gradle.kts'
ktlint()
}
}
allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
}
apply from: "${rootDir}/scripts/publish-root.gradle"