From 58e50ae39d5565592ae7b8368889209afab86e7c Mon Sep 17 00:00:00 2001 From: Aldrin Piri Date: Sat, 13 Feb 2016 19:00:05 -0500 Subject: [PATCH] NIFI-1511 Incorporating Groovy unit tests as part of the main build and providing explicit compile scope on the Groovy dependency for the scripting bundle. This closes #220 Signed-off-by: Matt Gilman --- .travis.yml | 2 +- .../nifi-scripting-processors/pom.xml | 1 - .../nifi-scripting-bundle/pom.xml | 11 ++ pom.xml | 131 ++++++------------ 4 files changed, 57 insertions(+), 88 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7f65703a9a..b5c02d0ed4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,4 @@ before_install: - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts - sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml -script: mvn clean install -Pcontrib-check,groovy-unit-test +script: mvn clean install -Pcontrib-check diff --git a/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml b/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml index 2e7863e37f..0f5247db6e 100644 --- a/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml +++ b/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml @@ -41,7 +41,6 @@ org.codehaus.groovy groovy-all - 2.4.5 org.python diff --git a/nifi-nar-bundles/nifi-scripting-bundle/pom.xml b/nifi-nar-bundles/nifi-scripting-bundle/pom.xml index 139a3590cc..061338acac 100644 --- a/nifi-nar-bundles/nifi-scripting-bundle/pom.xml +++ b/nifi-nar-bundles/nifi-scripting-bundle/pom.xml @@ -37,6 +37,17 @@ nifi-scripting-processors 0.6.0-SNAPSHOT + + org.codehaus.groovy + groovy-all + 2.4.5 + + compile + diff --git a/pom.xml b/pom.xml index 61367f99ae..ac29b01e59 100644 --- a/pom.xml +++ b/pom.xml @@ -1132,6 +1132,13 @@ language governing permissions and limitations under the License. --> aws-java-sdk 1.10.32 + + + org.codehaus.groovy + groovy-all + 2.4.5 + test + @@ -1150,6 +1157,10 @@ language governing permissions and limitations under the License. --> slf4j-simple test + + org.codehaus.groovy + groovy-all + @@ -1165,6 +1176,12 @@ language governing permissions and limitations under the License. --> true + + org.codehaus.groovy + groovy-eclipse-compiler + 2.9.2-01 + true + org.apache.maven.plugins maven-war-plugin @@ -1291,6 +1308,34 @@ language governing permissions and limitations under the License. --> + + org.apache.maven.plugins + maven-compiler-plugin + + + + groovy-tests + test + + + + groovy-eclipse-compiler + 1.7 + 1.7 + + + + org.codehaus.groovy + groovy-eclipse-compiler + 2.9.2-01 + + + org.codehaus.groovy + groovy-eclipse-batch + 2.4.3-01 + + + org.apache.nifi nifi-nar-maven-plugin @@ -1532,91 +1577,5 @@ language governing permissions and limitations under the License. --> - - - groovy-unit-test - - - groovy - test - - - - - - org.codehaus.groovy - groovy-all - 2.4.5 - test - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.8 - - - add-source - generate-sources - - add-source - - - - src/main/groovy - - - - - add-test-source - generate-test-sources - - add-test-source - - - - src/test/groovy - - - - - - - maven-compiler-plugin - 3.2 - - groovy-eclipse-compiler - 1.7 - 1.7 - - **/*.java - **/*.groovy - - - - - org.codehaus.groovy - groovy-eclipse-compiler - 2.9.2-01 - - - org.codehaus.groovy - groovy-eclipse-batch - 2.4.3-01 - - - - - org.codehaus.groovy - groovy-eclipse-compiler - 2.9.2-01 - true - - - -