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_ID
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyMaven
(GeneratorContext generatorContext, GradleEnterpriseConfiguration server) Applies the necessary Maven templates to enable Gradle Enterprise support.@NonNull String
getName()
The name of the feature.@NonNull String
getTitle()
protected GradlePlugin
gradlePlugin
(GradleEnterpriseConfiguration configuration) Creates aGradlePlugin
instance configured with the Gradle Enterprise plugin.boolean
Some 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, getThirdPartyDocumentation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
Methods inherited from interface io.micronaut.projectgen.core.feature.Feature
getFrameworkDocumentation, getOrder, isCommunity, isPreview, processSelectedFeatures, supports
Methods 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:Feature
The name of the feature. It must be unique.- Specified by:
getName
in interfaceFeature
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
- Overrides:
getName
in classGradleEnterprise
- Returns:
- the name of the feature
-
getTitle
- Specified by:
getTitle
in interfaceFeature
- Overrides:
getTitle
in classGradleEnterprise
- Returns:
- The title of the feature
-
isVisible
public boolean isVisible()Description copied from interface:Feature
Some 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:GradleEnterprise
Applies the necessary Maven templates to enable Gradle Enterprise support.- Overrides:
applyMaven
in 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:GradleEnterprise
Creates aGradlePlugin
instance configured with the Gradle Enterprise plugin.- Overrides:
gradlePlugin
in classGradleEnterprise
- Parameters:
configuration
- The Gradle Enterprise configuration to apply.- Returns:
- A
GradlePlugin
configured 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.
-