Package io.micronaut.build
Class MicronautBuildSettingsExtension
java.lang.Object
io.micronaut.build.MicronautBuildSettingsExtension
-
Constructor Summary
ConstructorsConstructorDescriptionMicronautBuildSettingsExtension(org.gradle.api.provider.ProviderFactory providers, org.gradle.api.initialization.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidConvenience method for adding the snapshot repository globally.protected abstract org.gradle.process.ExecOperationsabstract org.gradle.api.provider.ListProperty<String>Configures a list of project name prefixes which correspond to projects which do not use the "standard" project naming convention (e.g `test-suite-`).abstract org.gradle.api.provider.ListProperty<String>Configures a list of project path prefixes which correspond to projects which do not use the "standard" project naming convention (e.g `examples:`).protected abstract org.gradle.api.provider.ProviderFactoryabstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.provider.Property<Boolean>Configures use of "standard" project names.voidExposes the Micronaut version catalog so that it can be used in modules using type safe accessors.voidimportMicronautCatalog(String alias) Exposes a Micronaut version catalog so that it can be used in modules using type safe accessors.voidimportMicronautCatalogFromGAV(String gavCoordinates) Exposes a Micronaut version catalog so that it can be used in modules using type safe accessors.voidrequiresDevelopmentVersion(String githubProjectName, String branch) Allows integrating an upstream Micronaut project as a dependency of this project, as sources.
-
Constructor Details
-
MicronautBuildSettingsExtension
@Inject public MicronautBuildSettingsExtension(org.gradle.api.provider.ProviderFactory providers, org.gradle.api.initialization.Settings settings)
-
-
Method Details
-
getUseLocalCache
-
getUseRemoteCache
-
getUseStandardizedProjectNames
Configures use of "standard" project names. When set to "true", project names will be automatically configured to start with "micronaut-", except for test suites. This makes it cleaner for publications, since the project name will match the publication artifact id, making it easier to use composite builds. Defaults to false.- Returns:
- the standardized project names property
-
getNonStandardProjectPathPrefixes
Configures a list of project path prefixes which correspond to projects which do not use the "standard" project naming convention (e.g `examples:`).- Returns:
- the list of non-standard project path prefixes
-
getNonStandardProjectNamePrefixes
Configures a list of project name prefixes which correspond to projects which do not use the "standard" project naming convention (e.g `test-suite-`).- Returns:
- the list of non-standard project path prefixes
-
getProviders
@Inject protected abstract org.gradle.api.provider.ProviderFactory getProviders() -
getExecOperations
@Inject protected abstract org.gradle.process.ExecOperations getExecOperations() -
getMicronautVersion
-
importMicronautCatalog
public void importMicronautCatalog()Exposes the Micronaut version catalog so that it can be used in modules using type safe accessors. Importing the catalog will implicitly add the shared repositories. -
importMicronautCatalogFromGAV
Exposes a Micronaut version catalog so that it can be used in modules using type safe accessors. Importing the catalog will implicitly add the shared repositories. The name of the catalog is derived from the artifact id in the GAV coordinates. For example, if the artifact id is "micronaut-aws-bom", then the derived catalog name will be "mnAws". -
importMicronautCatalog
Exposes a Micronaut version catalog so that it can be used in modules using type safe accessors. Importing the catalog will implicitly add the shared repositories. The name of the catalog is derived from the artifact id in the GAV coordinates. For example, if the artifact id is "micronaut-aws-bom", then the derived catalog name will be "mnAws". -
addSnapshotRepository
public void addSnapshotRepository()Convenience method for adding the snapshot repository globally. -
requiresDevelopmentVersion
Allows integrating an upstream Micronaut project as a dependency of this project, as sources.- Parameters:
githubProjectName- the GitHub project name (without the micronaut-projects/ part, e.g "micronaut-core")branch- the branch to use
-