-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
66 lines (59 loc) · 1.79 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
62
63
64
65
66
import org.jetbrains.dokka.DokkaConfiguration.Visibility
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL
plugins {
alias(libs.plugins.kotlin.jvm)
`java-library`
alias(libs.plugins.style)
alias(libs.plugins.dokka)
id("fopbot-publish")
id("fopbot-sign")
}
buildscript {
dependencies {
classpath(libs.dokkaBase)
}
}
group = "org.tudalgo"
version = file("version").readLines().first()
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
dependencies {
implementation(libs.slf4jSimple)
implementation(libs.annotations)
implementation(libs.batik)
implementation(libs.imageio.batik)
implementation(libs.jSystemThemeDetector)
compileOnly(libs.lombok)
annotationProcessor(libs.lombok)
testCompileOnly(libs.lombok)
testAnnotationProcessor(libs.lombok)
dokkaPlugin(libs.dokkaKotlinAsJavaPlugin)
dokkaPlugin(libs.dokkaVersioningPlugin)
}
tasks.withType<DokkaTask>().configureEach {
moduleName.set("FOPBot")
dokkaSourceSets.configureEach {
includes.from("Module.md")
jdkVersion.set(17)
sourceLink {
localDirectory.set(projectDir.resolve("src"))
remoteUrl.set(URL("https://github.com/tudalgo/fopbot/tree/master/src"))
remoteLineSuffix.set("#L")
}
perPackageOption {
reportUndocumented.set(true)
documentedVisibilities.set(setOf(Visibility.PUBLIC, Visibility.PROTECTED))
}
}
}
tasks.dokkaHtml {
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
customAssets = listOf(file("logo-icon.svg"))
footerMessage = "(c) 2023 tudalgo.org"
}
}