From 6f64d8d5d0b239c7f3639fd7c93cb2be55c90289 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Thu, 19 Oct 2023 23:43:49 +0200 Subject: [PATCH] Removed SonarQube warnings --- build.gradle.kts | 6 +----- gradle.properties.example | 1 + gradle/libs.versions.toml | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 83cc1752e5..baace361f8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,3 @@ -import org.jetbrains.dokka.gradle.DokkaMultiModuleTask -import java.io.BufferedOutputStream -import java.io.ByteArrayOutputStream - /* * Copyright (c) 2019-2021, Fraunhofer AISEC. All rights reserved. * @@ -76,7 +72,7 @@ fun generateDokkaWithVersionTag(dokkaMultiModuleTask: org.jetbrains.dokka.gradle val config = """{ "version": "$tag", "olderVersionsDir":"${oldOutputPath.path}" }""" val mapOf = mapOf(id to config) - dokkaMultiModuleTask.outputDirectory.set(file(buildDir.resolve("dokkaCustomMultiModuleOutput").resolve(tag))) + dokkaMultiModuleTask.outputDirectory.set(file(layout.buildDirectory.asFile.get().resolve("dokkaCustomMultiModuleOutput").resolve(tag))) dokkaMultiModuleTask.pluginsMapConfiguration.set(mapOf) } diff --git a/gradle.properties.example b/gradle.properties.example index b9daa60f60..f227448a38 100644 --- a/gradle.properties.example +++ b/gradle.properties.example @@ -1,4 +1,5 @@ org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m -Dkotlin.daemon.jvm.options=-Xmx4g +systemProp.sonar.gradle.skipCompile=true enableJavaFrontend=true enableCXXFrontend=true diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c700c24310..eebcfa40c8 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,7 +2,7 @@ kotlin = "1.9.0" neo4j = "4.0.6" log4j = "2.21.0" -sonarqube = "4.4.0.3356" +sonarqube = "4.4.1.3373" spotless = "6.22.0" nexus-publish = "1.3.0"