From 866a5147852c164e504c50a01397fba3b9505969 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 7 Nov 2015 15:14:00 -0500 Subject: [PATCH] add groovy build code (buildSrc/) in 'gradle eclipse' This makes it a groovy project that works in eclipse. You will have to install a plugin for groovy language support (I used a snapshot build from https://github.com/groovy/groovy-eclipse/wiki) --- build.gradle | 6 ++++++ .../com/carrotsearch/gradle/junit4/TestReportLogger.groovy | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 712e8b5837c..49189482e6b 100644 --- a/build.gradle +++ b/build.gradle @@ -192,4 +192,10 @@ allprojects { tasks.eclipse.dependsOn(copyEclipseSettings) } +// add buildSrc itself as a groovy project +task buildSrcEclipse(type: GradleBuild) { + buildFile = 'buildSrc/build.gradle' + tasks = ['cleanEclipse', 'eclipse'] +} +tasks.eclipse.dependsOn(buildSrcEclipse) diff --git a/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/TestReportLogger.groovy b/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/TestReportLogger.groovy index 36d83a19865..147a26db86e 100644 --- a/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/TestReportLogger.groovy +++ b/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/TestReportLogger.groovy @@ -25,7 +25,7 @@ class TestReportLogger extends TestsSummaryEventListener implements AggregatedEv static final String FAILURE_MARKER = " <<< FAILURES!" /** Status names column. */ - static EnumMap statusNames; + static EnumMap statusNames; static { statusNames = new EnumMap<>(TestStatus.class); for (TestStatus s : TestStatus.values()) {