Skip to content

Commit

Permalink
close #62: use runtime classpath instead of compile classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Dec 17, 2018
1 parent 30e1ae1 commit b5122c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Currently the versioning policy of this project follows [Semantic Versioning](ht

* Prevent NPE in unexpected situations where no reports are enabled, despite xml being set by default using convention mapping (See [#61](https://github.com/spotbugs/spotbugs-gradle-plugin/issues/61), [#68](https://github.com/spotbugs/spotbugs-gradle-plugin/issues/68))

### Fixed

* Analyze runtime classpath instead of compile classpath. [#62](https://github.com/spotbugs/spotbugs-gradle-plugin/issues/62)

## 1.6.5 - 2018-10-17

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/spotbugs/SpotBugsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ protected void configureForSourceSet(final SourceSet sourceSet, SpotBugsTask tas
.forEach(tree -> tree.builtBy(sourceSet.getClassesTaskName()));
return presentClassDirs;
});
taskMapping.map("classpath", sourceSet::getCompileClasspath);
taskMapping.map("classpath", sourceSet::getRuntimeClasspath);
}
}

0 comments on commit b5122c2

Please sign in to comment.