aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 22:41:49 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 22:41:49 +0700
commit4df2a5f6c815b0dd8cc8b68aaf164a40e63fa57d (patch)
tree2ae157096adbd9b3c190f7eb99cc5c568d7c2da1 /build.gradle.kts
parent688869d1a5d60b8bdd89c78e0deab6b53b04a694 (diff)
downloadOneConfig-4df2a5f6c815b0dd8cc8b68aaf164a40e63fa57d.tar.gz
OneConfig-4df2a5f6c815b0dd8cc8b68aaf164a40e63fa57d.tar.bz2
OneConfig-4df2a5f6c815b0dd8cc8b68aaf164a40e63fa57d.zip
make dokka have oneconfig logo
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts11
1 files changed, 9 insertions, 2 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 6718cc1..27245ec 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -19,7 +19,6 @@ plugins {
}
java {
- withJavadocJar()
withSourcesJar()
}
@@ -249,6 +248,14 @@ tasks {
jdkVersion.set(8)
}
}
+ doLast {
+ val outputFile = outputDirectory.get().resolve("images/logo-icon.svg")
+ if (outputFile.exists()) {
+ outputFile.delete()
+ }
+ val inputFile = project.rootDir.resolve("src/main/resources/assets/oneconfig/icons/OneConfig.svg")
+ inputFile.copyTo(outputFile)
+ }
}
val dokkaJar = create("dokkaJar", Jar::class.java) {
archiveClassifier.set("dokka")
@@ -256,7 +263,7 @@ tasks {
dependsOn(dokkaHtml)
from(layout.buildDirectory.dir("dokka"))
}
- named("javadocJar").get().dependsOn(dokkaJar)
+ named("sourcesJar").get().dependsOn(dokkaJar)
}
afterEvaluate {