Class MicronautGradleEnterprise
java.lang.Object
io.micronaut.starter.feature.buildtools.GradleEnterprise
io.micronaut.starter.feature.buildtools.MicronautGradleEnterprise
- All Implemented Interfaces:
io.micronaut.core.naming.Described,io.micronaut.core.naming.Named,io.micronaut.core.order.Ordered,Feature,GradleEnterpriseConfiguration
@Requires(property="micronaut.starter.feature.micronaut.gradle.enterprise.enabled",value="true",defaultValue="true") @Requires(property="micronaut.starter.feature.gradle.enterprise.enabled",value="true",defaultValue="true")
@Singleton
public class MicronautGradleEnterprise
extends GradleEnterprise
Gradle Enterprise feature customized for Micronaut,
configuring Micronaut-specific Gradle Enterprise settings
and applying Maven extensions for build scans and custom user data.
-
Field Summary
FieldsFields inherited from class io.micronaut.starter.feature.buildtools.GradleEnterprise
GRADLE_ENTERPRISE_ARTIFACT_ID, GRADLE_ENTERPRISE_PLUGIN_IDFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyMaven(GeneratorContext generatorContext, GradleEnterpriseConfiguration server) Applies the necessary Maven templates to enable Gradle Enterprise support.@NonNull StringgetName()The name of the feature.@NonNull StringgetTitle()protected GradlePlugingradlePlugin(GradleEnterpriseConfiguration configuration) Creates aGradlePlugininstance configured with the Gradle Enterprise plugin.booleanSome features should not be visible to the user because they are a common parent of other selectable features, or they should always be applied, or any other reason.protected @NonNull List<GradleRepository>Returns a list of Gradle repositories used for plugins management.Methods inherited from class io.micronaut.starter.feature.buildtools.GradleEnterprise
addMavenTemplate, apply, getCategory, getDescription, getThirdPartyDocumentationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods inherited from interface io.micronaut.projectgen.core.feature.Feature
getFrameworkDocumentation, getOrder, isCommunity, isPreview, processSelectedFeatures, supportsMethods inherited from interface io.micronaut.starter.feature.buildtools.GradleEnterpriseConfiguration
aggreeWithTermsOfService, allowTrustedServer, getTermsOfServiceUrl
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
MicronautGradleEnterprise
public MicronautGradleEnterprise()
-
-
Method Details
-
getName
Description copied from interface:FeatureThe name of the feature. It must be unique.- Specified by:
getNamein interfaceFeature- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Overrides:
getNamein classGradleEnterprise- Returns:
- the name of the feature
-
getTitle
- Specified by:
getTitlein interfaceFeature- Overrides:
getTitlein classGradleEnterprise- Returns:
- The title of the feature
-
isVisible
public boolean isVisible()Description copied from interface:FeatureSome features should not be visible to the user because they are a common parent of other selectable features, or they should always be applied, or any other reason.- Returns:
- True if the feature should be able to be selected by the user
-
getServer
-
applyMaven
Description copied from class:GradleEnterpriseApplies the necessary Maven templates to enable Gradle Enterprise support.- Overrides:
applyMavenin classGradleEnterprise- Parameters:
generatorContext- The generator context containing the project state.server- The Gradle Enterprise configuration to use for the templates.
-
gradlePlugin
Description copied from class:GradleEnterpriseCreates aGradlePlugininstance configured with the Gradle Enterprise plugin.- Overrides:
gradlePluginin classGradleEnterprise- Parameters:
configuration- The Gradle Enterprise configuration to apply.- Returns:
- A
GradlePluginconfigured with the Gradle Enterprise plugin.
-
pluginsManagementRepositories
Returns a list of Gradle repositories used for plugins management. The list includes the Gradle Plugin Portal and Maven Central repositories.- Returns:
- A non-null list of Gradle repositories.
-