-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
61 lines (54 loc) · 1.56 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
56
57
58
59
60
61
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import org.jetbrains.dokka.gradle.DokkaTask
import org.tudalgo.algoutils.script.AlgoUtilsPublishPlugin
import java.net.URL
plugins {
kotlin("jvm") version "2.0.21"
`java-library`
alias(libs.plugins.dokka)
}
buildscript {
dependencies {
classpath(libs.dokkaBase)
}
}
val projectVersion = file("version").readLines().first()
allprojects {
apply(plugin = "java-library")
group = "org.tudalgo"
version = projectVersion
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "17"
targetCompatibility = "17"
}
}
tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
jdkVersion.set(17)
includes.from(fileTree(projectDir) { include("*.md") })
sourceLink {
localDirectory.set(projectDir.resolve("src"))
remoteUrl.set(URL("https://github.com/tudalgo/algoutils/tree/master/src"))
remoteLineSuffix.set("#L")
}
}
}
}
subprojects {
apply<AlgoUtilsPublishPlugin>()
apply(plugin = "org.jetbrains.dokka")
}
tasks.dokkaHtmlMultiModule {
moduleName.set("Algoutils")
includes.from("Module.md")
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
customAssets = listOf(file("logo-icon.svg"))
footerMessage = "(c) 2023 tudalgo.org"
}
}
dependencies {
dokkaPlugin(libs.dokkaKotlinAsJavaPlugin)
}