All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gradle.develocity.agent.maven.api.scan.BuildScanPublishing Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.23
Show newest version
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