From 6b87afc19980b591fa875782d1a9788deb430251 Mon Sep 17 00:00:00 2001 From: Jerome Prinet Date: Fri, 5 Apr 2024 10:59:41 +0200 Subject: [PATCH] Do not publish Build Scans for ignored projects --- .../project/QuarkusProjectDevelocityConfigurationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/quarkus/develocity/project/QuarkusProjectDevelocityConfigurationListener.java b/src/main/java/io/quarkus/develocity/project/QuarkusProjectDevelocityConfigurationListener.java index 1782527..340ee85 100644 --- a/src/main/java/io/quarkus/develocity/project/QuarkusProjectDevelocityConfigurationListener.java +++ b/src/main/java/io/quarkus/develocity/project/QuarkusProjectDevelocityConfigurationListener.java @@ -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);