From 3af21c07c511fe35b7d6f80c99446390273c34d4 Mon Sep 17 00:00:00 2001 From: Iurii Ignatko Date: Thu, 14 Nov 2024 10:33:38 +0100 Subject: [PATCH] Update codenarc --- build.gradle.kts | 3 +++ .../gradle/injection/MavenExtensionsDetectorTest.groovy | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4f851501..0f712bee 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -91,6 +91,9 @@ val includedLibs: Configuration by configurations.creating val gradlePluginJpi: Configuration by configurations.creating { isCanBeConsumed = true; isCanBeResolved = false } dependencies { + "codenarc"("org.codehaus.groovy:groovy-all:3.0.21") + "codenarc"("org.codenarc:CodeNarc:1.6.1") + api(platform("io.jenkins.tools.bom:bom-${coreBaseVersion}.x:${coreBomVersion}")) implementation("org.jenkins-ci.plugins:jackson2-api") diff --git a/src/test/groovy/hudson/plugins/gradle/injection/MavenExtensionsDetectorTest.groovy b/src/test/groovy/hudson/plugins/gradle/injection/MavenExtensionsDetectorTest.groovy index c09437e4..6fa7b17d 100644 --- a/src/test/groovy/hudson/plugins/gradle/injection/MavenExtensionsDetectorTest.groovy +++ b/src/test/groovy/hudson/plugins/gradle/injection/MavenExtensionsDetectorTest.groovy @@ -30,7 +30,7 @@ class MavenExtensionsDetectorTest extends Specification { dir { '.mvn' { 'extensions.xml'(generateExtensionsXml( - *(extensions.collect({ MavenCoordinates.parseCoordinates(it) })))) + *(extensions.collect { MavenCoordinates.parseCoordinates(it) }))) } } @@ -68,9 +68,9 @@ class MavenExtensionsDetectorTest extends Specification { dir { '.mvn' { 'extensions.xml'( - generateExtensionsXml( - MavenCoordinates.parseCoordinates('my:ext:1.0'), - MavenCoordinates.parseCoordinates('my:ext-ccud:1.0'))) + generateExtensionsXml( + MavenCoordinates.parseCoordinates('my:ext:1.0'), + MavenCoordinates.parseCoordinates('my:ext-ccud:1.0'))) } }