From f81a5e8d68514ffb755b8f0cd8a66837ec4d51ec Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Thu, 25 Feb 2021 19:50:40 +0100 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 57e869ba..4810efa2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -72,8 +72,6 @@ dependencies { * BUILD */ -// JVM VERSION - java.sourceCompatibility = JVM_VERSION java.targetCompatibility = JVM_VERSION @@ -82,21 +80,11 @@ tasks { compileTestKotlin.configureJvmVersion() } -// SOURCE CODE - -val sourcesJar by tasks.creating(Jar::class) { - archiveClassifier.set("sources") - from(sourceSets["main"].allSource) +java { + withSourcesJar() + withJavadocJar() } -artifacts { - archives(sourcesJar) -} - -/* - * DOCUMENTATION - */ - tasks.dokkaHtml.configure { outputDirectory.set(projectDir.resolve("docs")) } @@ -121,8 +109,6 @@ publishing { from(components["java"]) - artifact(sourcesJar) - this.groupId = project.group.toString() this.artifactId = project.name.toLowerCase() this.version = project.version.toString()