com.gradle.CustomConfigurationSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-custom-user-data-maven-extension Show documentation
Show all versions of common-custom-user-data-maven-extension Show documentation
A Maven extension to capture common custom user data used for Maven Build Scans in Develocity
The newest version!
package com.gradle;
import java.util.Optional;
enum CustomConfigurationSpec {
GRADLE_ENTERPRISE(
"Gradle Enterprise",
"gradle-enterprise-custom-user-data",
"gradleEnterprise",
Optional.empty()
),
DEVELOCITY(
"Develocity",
"develocity-custom-user-data",
"develocity",
Optional.of(GRADLE_ENTERPRISE)
);
final String displayName;
final String groovyScriptName;
final String apiVariableName;
final Optional fallbackScript;
CustomConfigurationSpec(
String displayName,
String groovyScriptName,
String apiVariableName,
Optional fallbackScript
) {
this.displayName = displayName;
this.groovyScriptName = groovyScriptName;
this.apiVariableName = apiVariableName;
this.fallbackScript = fallbackScript;
}
}