Skip to content

Commit

Permalink
Do not publish Build Scans for ignored projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jprinet committed Apr 5, 2024
1 parent ba183fc commit 6b87afc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void configure(DevelocityApi develocityApi, MavenSession mavenSession) th
Log.debug("Disabling build scan publication and build cache for nested project: "
+ mavenSession.getRequest().getBaseDirectory());

develocityApi.getBuildScan().getPublishing().onlyIf(context -> !context.getBuildResult().getFailures().isEmpty());
develocityApi.getBuildScan().getPublishing().onlyIf(context -> false);
develocityApi.getBuildCache().getLocal().setEnabled(false);
develocityApi.getBuildCache().getRemote().setEnabled(false);

Expand Down

0 comments on commit 6b87afc

Please sign in to comment.