-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
55 lines (47 loc) · 1.36 KB
/
build.gradle.kts
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
import org.jetbrains.dokka.gradle.DokkaTask
plugins {
alias(libs.plugins.dokka)
}
buildscript {
repositories {
mavenCentral()
google()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath(":build-mokkery")
classpath(libs.dokka.base)
}
}
rootProject.group = "dev.mokkery"
rootProject.ext["pluginId"] = "dev.mokkery"
allprojects {
group = rootProject.group
version = rootProject.version
tasks.withType<DokkaTask> {
onlyIf { "SNAPSHOT" !in version.toString() }
}
afterEvaluate {
extensions.findByType<JavaPluginExtension>()?.apply {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
}
}
}
dokka {
moduleName.set("Mokkery")
moduleVersion.set(rootProject.version.toString().replace("-SNAPSHOT", "", ignoreCase = true))
pluginsConfiguration.html {
customAssets.from(rootProject.layout.projectDirectory.file("website/static/img/logo-icon.svg").asFile)
}
dokkaPublications.html {
outputDirectory.set(rootProject.layout.projectDirectory.dir("website/static/api_reference"))
}
dependencies {
dokka(project(":mokkery-core"))
dokka(project(":mokkery-runtime"))
dokka(project(":mokkery-coroutines"))
dokka(project(":mokkery-gradle"))
}
}