From f2bc5951587ad8ba556fbc411c431b5bf3cf1a7b Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Mon, 9 Sep 2024 17:09:27 +0200 Subject: [PATCH] Generate javadoc jar and sources jar for maven central --- buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts b/buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts index 22c90348..ae260594 100644 --- a/buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts @@ -4,8 +4,11 @@ plugins { id("com.diffplug.spotless") } -kotlin { - jvmToolchain(11) +java { + toolchain { languageVersion = JavaLanguageVersion.of(11) } + + withJavadocJar() + withSourcesJar() } tasks.withType { useJUnitPlatform() }