diff options
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 11 |
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 { |