From ee291a84dd6c520be7e5ce422553ee32553e3192 Mon Sep 17 00:00:00 2001 From: Kengo TODA Date: Fri, 8 Sep 2017 11:05:07 +0800 Subject: [PATCH] refs #337: install spotbugs packages before testing gradle plugin refer discussion at: https://github.com/spotbugs/spotbugs/commit/f7a08d93d719319b6af260e7cce83d2806b05dd0 --- .travis.yml | 2 -- gradlePlugin/build.gradle | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index aac96a24e86..f8056586ed3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,8 +45,6 @@ install: - rm -rf eclipse - tar xzvf deps/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz eclipse - echo eclipseRoot.dir=$(pwd)/eclipse > eclipsePlugin/local.properties - # To run gradlePlugin:test, we need to install spotbugs and its dependencies into local repository - - ./gradlew install -x test script: # Manually switch to JDK9 if needed diff --git a/gradlePlugin/build.gradle b/gradlePlugin/build.gradle index f6409364566..5b101693cb1 100644 --- a/gradlePlugin/build.gradle +++ b/gradlePlugin/build.gradle @@ -18,7 +18,11 @@ dependencies { testCompile 'junit:junit:4.12'//, 'org.spockframework:spock-core:1.0-groovy-2.4' } -test { //show test output +test { + // SpotBugsPluginTest.java needs SpotBugs packages in Maven local + dependsOn ':spotbugs-annotations:install' + dependsOn ':spotbugs:install' + // show test output testLogging.showStandardStreams = true }