From c7b44ed995356850a2d6ce89d81b9dfd89bbcd01 Mon Sep 17 00:00:00 2001 From: p3t <3204560+p3t@users.noreply.github.com> Date: Sat, 22 Jun 2024 18:50:33 +0200 Subject: [PATCH] removed java-project for having java.with... needed by central publish --- .../io.vigier.java-library-conventions.gradle.kts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts b/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts index c44769a..80a8597 100644 --- a/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts @@ -5,7 +5,7 @@ plugins { id("io.freefair.lombok") id("org.springframework.boot") apply false id("io.spring.dependency-management") - id("org.kordamp.gradle.project") + `jacoco` id("org.kordamp.gradle.spotbugs") id("com.github.kt3k.coveralls") id("org.kordamp.gradle.coveralls") @@ -24,14 +24,18 @@ dependencyManagement { } } -//java { -// withSourcesJar() -// withJavadocJar() -//} +// This is needed for sontarTypeCentralUpload! Has conflict with kordamp.java-project +java { + withSourcesJar() + withJavadocJar() +} tasks.named("bootJar") { enabled = false } tasks { + jacocoTestReport { + dependsOn(tasks.test) // tests are required to run before generating the report + } delombok { enabled = false }