au.com.dius.pact.provider.gradle.PactCanIDeployTask.groovy Maven / Gradle / Ivy
The newest version!
package au.com.dius.pact.provider.gradle
import au.com.dius.pact.core.pactbroker.Latest
import au.com.dius.pact.core.pactbroker.PactBrokerClient
import au.com.dius.pact.core.pactbroker.To
import com.github.ajalt.mordant.TermColors
import org.gradle.api.GradleScriptException
import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.TaskAction
/**
* Task to verify the deployment state using a pact broker
*/
@SuppressWarnings(['Println', 'DuplicateStringLiteral'])
abstract class PactCanIDeployTask extends PactCanIDeployBaseTask {
static final String PACTICIPANT = 'pacticipant'
static final String PACTICIPANT_VERSION = 'pacticipantVersion'
static final String TO = 'toTag'
static final String TO_ENVIRONMENT = 'toEnvironment'
static final String TO_MAIN_BRANCH = 'toMainBranch'
static final String LATEST = 'latest'
@Internal
abstract PactBrokerClient brokerClient
@Input
@Optional
abstract Property getBroker()
@Input
@Optional
abstract Property
© 2015 - 2025 Weber Informatics LLC | Privacy Policy