-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
66 lines (57 loc) · 1.44 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
66 lines (57 loc) · 1.44 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
import com.diffplug.gradle.spotless.SpotlessExtension
plugins {
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.kotlinJvm) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.spotless)
alias(libs.plugins.dokka)
}
val currentVersion = currentVersion()
allprojects {
version = currentVersion
group = "love.forte.codegentle"
description = "A Kotlin multiplatform API for generating Java and Kotlin source code"
repositories {
mavenCentral()
}
}
// region Dokka
subprojects {
afterEvaluate {
val p = this
if (plugins.hasPlugin(libs.plugins.dokka.get().pluginId)) {
dokka {
configSourceSets(p)
pluginsConfiguration.html {
configHtmlCustoms(p)
}
}
rootProject.dependencies.dokka(p)
}
}
}
dokka {
moduleName = "CodeGentle"
dokkaPublications.all {
if (isLocal()) {
logger.info("Is local, offline")
offlineMode = true
}
}
configSourceSets(project)
pluginsConfiguration.html {
configHtmlCustoms(project)
}
}
// endregion
// region Spotless
subprojects {
afterEvaluate {
if (plugins.hasPlugin(libs.plugins.spotless.get().pluginId)) {
configure<SpotlessExtension> {
configSpotless(this@afterEvaluate)
}
}
}
}
// endregion