Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classes filtering does not work anymore #54

Closed
jkanto opened this issue Sep 24, 2018 · 1 comment
Closed

classes filtering does not work anymore #54

jkanto opened this issue Sep 24, 2018 · 1 comment
Assignees
Labels

Comments

@jkanto
Copy link

jkanto commented Sep 24, 2018

Since plugin version 1.6.2 it seems that classes filtering cannot be done. Example:

spotbugsTest {
	classes = classes.filter {
		!it.path.contains("foo/")
	}
}

With plugin version 1.6.1 classes on foo package are not processed, but since 1.6.2 filtering is ignored and all classes are processed by SpotBugs.

@wrprice
Copy link

wrprice commented Sep 27, 2018

Workaround is to use an exclude filter file, which supports excluding packages by regular expression.

@KengoTODA KengoTODA self-assigned this Dec 21, 2018
@KengoTODA KengoTODA added the bug label Dec 21, 2018
KengoTODA pushed a commit that referenced this issue Feb 23, 2020
…rectoryProvider (#54)

* fix #53: miscellaneous conversion of Provider<File> to RegularFileProvider and DirectoryProvider

 - This enables configuration of the tasks via Java, avoiding `SpotBugsTask#reports(Closure)`
 - Also add @Inject to SpotBugsTask constructor per https://guides.gradle.org/using-the-worker-api/#converting_to_the_worker_api

* fix: apply Kengo's patch and test for buildDir customization and lazy report instantiation

* Add multiversion testing; 6.1 fails

  - For context, see these issues:
  - #174
  - gradle/gradle#11189
  - gradle/gradle#11923

* fix: Restore use of RegularFileProperty

* style: spotless fixes

* fix: Enable Gradle 6.1 compatibility; add to test matrix

 - minor: fix system property default value for local testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants