From d07b087d81853e822acae6337de9bf0bb0d13678 Mon Sep 17 00:00:00 2001 From: C4tWithShell Date: Thu, 8 Feb 2024 12:24:17 +0300 Subject: [PATCH] Update --- build.gradle | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/build.gradle b/build.gradle index 63ccf24..cce1caf 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2023 Michael Clarke + * Copyright (C) 2020-2024 Michael Clarke * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -19,10 +19,10 @@ plugins { id('java') id('jacoco') - id('org.sonarqube') version('2.8') - id('info.solidsoft.pitest') version('1.4.0') - id('com.github.johnrengelman.shadow') version('5.1.0') - id('net.researchgate.release') version('2.6.0') + id('org.sonarqube') version('4.4.1.3373') + id('info.solidsoft.pitest') version('1.15.0') + id('com.github.johnrengelman.shadow') version('8.1.1') + id('net.researchgate.release') version('3.0.2') } group 'com.github.mc1arke.sonarqube.plugin' @@ -40,7 +40,7 @@ repositories { } } -def sonarqubeVersion = '10.2.1.78527' +def sonarqubeVersion = '10.3.0.82913' def sonarqubeLibDir = "${projectDir}/sonarqube-lib" def sonarLibraries = "${sonarqubeLibDir}/sonarqube-${sonarqubeVersion}/lib" @@ -62,17 +62,17 @@ tasks.withType(JavaCompile) { dependencies { compileOnly(fileTree(dir: sonarLibraries, include: '**/*.jar', exclude: 'extensions/*.jar')) testImplementation(fileTree(dir: sonarLibraries, include: '**/*.jar', exclude: 'extensions/*.jar')) - testImplementation('org.mockito:mockito-core:5.4.0') - testImplementation('org.assertj:assertj-core:3.24.2') - testImplementation('com.github.tomakehurst:wiremock:2.27.2') + testImplementation('org.mockito:mockito-core:5.8.0') + testImplementation('org.assertj:assertj-core:3.25.1') + testImplementation('org.wiremock:wiremock:3.3.1') zip("sonarqube:sonarqube:${sonarqubeVersion}@zip") implementation('org.bouncycastle:bcpkix-jdk15on:1.70') implementation(files('lib/nodes-0.5.0.jar')) - runtimeOnly('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2') + runtimeOnly('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.16.1') compileOnly('com.google.code.findbugs:jsr305:3.0.2') - implementation('org.javassist:javassist:3.29.2-GA') - implementation('com.squareup.okhttp3:logging-interceptor:4.11.0') - testImplementation(platform('org.junit:junit-bom:5.10.0')) + implementation('org.javassist:javassist:3.30.2-GA') + implementation('com.squareup.okhttp3:logging-interceptor:4.12.0') + testImplementation(platform('org.junit:junit-bom:5.10.1')) testImplementation('org.junit.jupiter:junit-jupiter') testImplementation('junit:junit:4.13.2') testRuntimeOnly('org.junit.vintage:junit-vintage-engine') @@ -112,18 +112,19 @@ jar { release { git { - requireBranch = '' - commitVersionFileOnly = true + requireBranch.set('') + commitVersionFileOnly.set(true) } + buildTasks.set(["assemble"]) } tasks.jar.configure { - classifier = 'nodeps' + archiveClassifier = 'nodeps' enabled = false } tasks.shadowJar.configure { - classifier = null + archiveClassifier = null } tasks.withType(JavaCompile) { @@ -134,8 +135,9 @@ tasks.withType(JavaCompile) { assemble.dependsOn('shadowJar') pitest { + junit5PluginVersion = '1.2.1' timestampedReports = false - avoidCallsTo = ['org.sonar.api.utils.log.Logger'] + avoidCallsTo = ['org.slf4j.Logger'] } jacocoTestReport {