-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
70 lines (63 loc) · 2.38 KB
/
build.gradle.kts
File metadata and controls
70 lines (63 loc) · 2.38 KB
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
/*
* Software Name: OUDS Android
* SPDX-FileCopyrightText: Copyright (c) Orange SA
* SPDX-License-Identifier: MIT
*
* This software is distributed under the MIT license,
* the text of which is available at https://opensource.org/license/MIT/
* or see the "LICENSE" file for more details.
*
* Software description: Android library of reusable graphical components
*/
import com.orange.ouds.gradle.releaseVersion
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
kotlin("jvm")
alias(libs.plugins.compose.compiler) apply false
id(libs.plugins.firebase.appdistribution.get().pluginId) apply false
alias(libs.plugins.firebase.crashlytics) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.ksp) apply false
id(libs.plugins.dokka.get().pluginId) // https://github.com/gradle/gradle/issues/20084#issuecomment-1060822638
id("github")
id("release")
id("netlify")
id("check-notice")
id("documentation")
}
dependencies {
dokkaPlugin(libs.dokka.android.documentation.plugin)
dokkaHtmlPlugin(libs.dokka.versioning.plugin)
dokka(project(":core"))
dokka(project(":global-raw-tokens"))
dokka(project(":theme-contract"))
dokka(project(":theme-orange"))
dokka(project(":theme-orange-compact"))
dokka(project(":theme-sosh"))
dokka(project(":theme-wireframe"))
}
checkNotice {
additionalResourcePaths += "$rootDir/docs/images"
}
dokka {
// used as project name in the header
moduleName.set("OUDS Android")
pluginsConfiguration {
html {
customAssets.from("docs/assets/logo-icon.svg", "docs/assets/banner.png")
customStyleSheets.from("docs/assets/orange-style.css")
footerMessage.set("Copyright © Orange 2024")
}
versioning {
// This configuration step is evaluated before any task is executed,
// thus project.version.toString() is not up to date when executing the prepareRelease task.
// That's why we use releaseVersion to set the correct version.
version.set(releaseVersion ?: project.version.toString())
olderVersionsDir.set(projectDir.resolve("docs/previousDocVersions"))
}
}
dokkaPublications.html {
includes.from("docs/index.md")
outputDirectory.set(projectDir.resolve("docs/dokka"))
}
}