com.gradle.develocity.agent.maven.api.scan.BuildScanPublishing Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of develocity-maven-extension Show documentation
Show all versions of develocity-maven-extension Show documentation
Maven extension for Develocity installations that provides Build Insights, Build Caching, Predictive Test Selection, and Test Distribution for Maven builds. Alternatively, Build Insights can be captured and viewed for free at scans.gradle.com and Build Caching can be used for free locally. See https://gradle.com for more information on Develocity.
package com.gradle.develocity.agent.maven.api.scan;
import java.util.function.Predicate;
/**
* Allows configuring whether a build scan should be published at the end of the build
*
* @see BuildScanApi#getPublishing()
* @since 1.21
*/
public interface BuildScanPublishing {
/**
* Specify a condition for when a build scan should be published at the end of the build.
*
* You may add multiple such predicates. A build scan will be published if any of the predicates return true.
*
* @param onlyIf the condition
* @return this object
*/
BuildScanPublishing onlyIf(Predicate onlyIf);
/**
* The context for evaluating conditions that determine whether a build scan should be published at the end of the build.
*
* @see #onlyIf(Predicate)
*/
interface PublishingContext {
BuildResult getBuildResult();
boolean isAuthenticated();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy