Skip to content

Commit

Permalink
Add Artifact.SCOPE_PROVIDED artifacts to aggregate report (bazelbuild…
Browse files Browse the repository at this point in the history
  • Loading branch information
chonton authored and Godin committed Aug 10, 2017
1 parent 86856fe commit bb2ecb5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
* </p>
*
* <ul>
* <li><code>compile</code>, <code>runtime</code>: Project source and execution
* data is included in the report.</li>
* <li><code>compile</code>, <code>runtime</code>, <code>provided</code>:
* Project source and execution data is included in the report.</li>
* <li><code>test</code>: Only execution data is considered for the report.</li>
* </ul>
*
Expand Down Expand Up @@ -106,7 +106,7 @@ void loadExecutionData(final ReportSupport support) throws IOException {
loadExecutionData(support, filter, getProject().getBasedir());
for (final MavenProject dependency : findDependencies(
Artifact.SCOPE_COMPILE, Artifact.SCOPE_RUNTIME,
Artifact.SCOPE_TEST)) {
Artifact.SCOPE_PROVIDED, Artifact.SCOPE_TEST)) {
loadExecutionData(support, filter, dependency.getBasedir());
}
}
Expand All @@ -130,7 +130,8 @@ void createReport(final IReportGroupVisitor visitor,
final ReportSupport support) throws IOException {
final IReportGroupVisitor group = visitor.visitGroup(title);
for (final MavenProject dependency : findDependencies(
Artifact.SCOPE_COMPILE, Artifact.SCOPE_RUNTIME)) {
Artifact.SCOPE_COMPILE, Artifact.SCOPE_RUNTIME,
Artifact.SCOPE_PROVIDED)) {
support.processProject(group, dependency.getArtifactId(),
dependency, getIncludes(), getExcludes(), sourceEncoding);
}
Expand Down
6 changes: 4 additions & 2 deletions org.jacoco.doc/docroot/doc/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ <h3>New Features</h3>
(GitHub <a href="https://github.com/jacoco/jacoco/issues/513">#513</a>).</li>
<li>Exclude from a report private empty constructors that do not have arguments
(GitHub <a href="https://github.com/jacoco/jacoco/issues/529">#529</a>).</li>
<li>Maven aggregated reports will now also include modules of runtime dependencies
(GitHub <a href="https://github.com/jacoco/jacoco/issues/498">#498</a>).</li>
<li>Maven aggregated reports will now also include modules of <code>runtime</code>
and <code>provided</code> dependencies
(GitHub <a href="https://github.com/jacoco/jacoco/issues/498">#498</a>,
<a href="https://github.com/jacoco/jacoco/issues/572">#572</a>).</li>
<li>JaCoCo now comes with a simple command line interface
(GitHub <a href="https://github.com/jacoco/jacoco/issues/525">#525</a>).</li>
<li>Manifests of JAR files now have <code>Automatic-Module-Name</code> for Java 9
Expand Down

0 comments on commit bb2ecb5

Please sign in to comment.