You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/12 00:38:32 UTC

[groovy] 02/07: GROOVY-9062: Bump codenarc to 1.3

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 16b549b8c94677597fe3bb59a64d724880e4bc66
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Apr 1 23:02:54 2019 +1000

    GROOVY-9062: Bump codenarc to 1.3
---
 gradle/quality.gradle | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/gradle/quality.gradle b/gradle/quality.gradle
index 8e2103e..8184668 100644
--- a/gradle/quality.gradle
+++ b/gradle/quality.gradle
@@ -27,6 +27,7 @@ allprojects {
     if (JavaVersion.current() >= JavaVersion.VERSION_1_8) {
         apply plugin: 'com.github.spotbugs'
     }
+
     configurations.codenarc {
         // because we will rely on the version we build
         // because version ranges are evil
@@ -40,6 +41,11 @@ allprojects {
         }
     }
 
+    dependencies {
+        codenarc "org.codenarc:CodeNarc:1.3"
+        codenarc project(":groovy-templates")
+    }
+
 //    license {
 //        header rootProject.file('config/licensing/HEADER.txt')
 //        include "**/*.groovy"
@@ -132,7 +138,7 @@ allprojects {
     if (JavaVersion.current() >= JavaVersion.VERSION_1_8) {
         spotbugs {
             toolVersion = '3.1.7'
-            // continue build despite findbug warnings
+            // continue build despite warnings
             ignoreFailures = true
             //defining source set is needless
             //just run ./gradlew spotbugsMain then it will parse src/main/java.
@@ -161,12 +167,12 @@ subprojects { sp ->
                     'src/test/resources/includes/hello-escaped.txt',
                     'src/test/resources/includes/hello.html'
             ]
-            break;
+            break
         case ['groovy-groovydoc', 'groovy-docgenerator']:
             extras = [
                     '**/stylesheet.css'  // MIT license as per NOTICE/LICENSE files
             ]
-            break;
+            break
     }
     rat {
         inputDir = sp.projectDir.absolutePath
@@ -191,5 +197,4 @@ rat {
 }
 
 apply from: 'gradle/jacoco/jacoco.gradle'
-// Temporarily disabled because of conflict
 apply from: 'gradle/binarycompatibility.gradle'