From d6838487094a5c8d32d09e3996999cd67c6083c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Thu, 27 Jan 2022 10:02:53 +0100 Subject: [PATCH 1/2] [build] do not run spotbugsTest by default --- .github/workflows/pr-validation.yml | 2 +- build.gradle | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index f96a401dca3..816315b3707 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -47,6 +47,6 @@ jobs: with: java-version: 1.8 - name: Validate pull request - run: ./gradlew build -x spotbugsTest -x signDistTar -x test + run: ./gradlew build -x signDistTar -x test - name: Check license files run: dev/check-all-licenses diff --git a/build.gradle b/build.gradle index b92a70cbf41..a72a728aade 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ plugins { id "com.github.vlsi.stage-vote-release" version "1.77" id 'checkstyle' id 'org.nosphere.apache.rat' - id 'com.github.spotbugs' + id 'com.github.spotbugs' apply false } subprojects { @@ -87,6 +87,7 @@ allprojects { toolVersion = '3.1.8' excludeFilter = file("$rootDir/buildtools/src/main/resources/bookkeeper/findbugsExclude.xml") reportLevel = 'high' + spotbugsTest.enabled = false } From 5f9db2dce4d45fbc023abd0b10d286283bbca39f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Thu, 27 Jan 2022 10:17:39 +0100 Subject: [PATCH 2/2] remove apply --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a72a728aade..b48dbb9ff15 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ plugins { id "com.github.vlsi.stage-vote-release" version "1.77" id 'checkstyle' id 'org.nosphere.apache.rat' - id 'com.github.spotbugs' apply false + id 'com.github.spotbugs' } subprojects {