aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 08:10:03 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 08:10:03 +0700
commit71582108cf96f096adfcca17896a22ae1c35865d (patch)
tree3ec465dcdad9dd0bb4854ae904038088757ccb02 /build.gradle.kts
parent1d3f5310806ed1d1f02a5f2bf1ee267d06d67fef (diff)
downloadOneConfig-71582108cf96f096adfcca17896a22ae1c35865d.tar.gz
OneConfig-71582108cf96f096adfcca17896a22ae1c35865d.tar.bz2
OneConfig-71582108cf96f096adfcca17896a22ae1c35865d.zip
Revert "proof of concept, custom javadoc stylesheet (dracula)"
This reverts commit a4857ad657bc14009ac2d47b89c6981761d40df9.
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts14
1 files changed, 11 insertions, 3 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 6cf80cf..998dbaa 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -4,6 +4,7 @@ import gg.essential.gradle.util.RelocationTransform.Companion.registerRelocation
import gg.essential.gradle.util.prebundle
plugins {
+ kotlin("jvm")
id("gg.essential.multi-version")
id("gg.essential.defaults.repo")
id("gg.essential.defaults.java")
@@ -11,6 +12,7 @@ plugins {
id("com.github.johnrengelman.shadow")
id("net.kyori.blossom") version "1.3.0"
id("io.github.juuxel.loom-quiltflower-mini")
+ id("org.jetbrains.dokka") version "1.6.20"
id("maven-publish")
id("signing")
java
@@ -157,6 +159,8 @@ dependencies {
lwjglNative("org.lwjgl:lwjgl-nanovg:3.3.1:natives-macos")
shade(lwjglJar.get().outputs.files)
shade(prebundle(shadeRelocated))
+
+ dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.6.20")
}
tasks.processResources {
@@ -238,9 +242,13 @@ tasks {
archiveClassifier.set("")
enabled = false
}
- javadoc {
- val o: StandardJavadocDocletOptions = options as StandardJavadocDocletOptions
- o.stylesheetFile(File(project.rootDir,"dracula-javadoc8.css"))
+ dokkaHtml.configure {
+ outputDirectory.set(buildDir.resolve("dokka"))
+ dokkaSourceSets {
+ configureEach {
+ jdkVersion.set(8)
+ }
+ }
}
}