Class MicronautBuildSettingsExtension

java.lang.Object
io.micronaut.build.MicronautBuildSettingsExtension

public abstract class MicronautBuildSettingsExtension extends Object
  • Constructor Details

    • MicronautBuildSettingsExtension

      @Inject public MicronautBuildSettingsExtension(org.gradle.api.provider.ProviderFactory providers, org.gradle.api.initialization.Settings settings)
  • Method Details

    • getUseLocalCache

      public abstract org.gradle.api.provider.Property<Boolean> getUseLocalCache()
    • getUseRemoteCache

      public abstract org.gradle.api.provider.Property<Boolean> getUseRemoteCache()
    • getUseStandardizedProjectNames

      public abstract org.gradle.api.provider.Property<Boolean> 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

      public abstract org.gradle.api.provider.ListProperty<String> 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

      public abstract org.gradle.api.provider.ListProperty<String> 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

      public String 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

      public void importMicronautCatalogFromGAV(String gavCoordinates)
      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

      public void importMicronautCatalog(String alias)
      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

      public void requiresDevelopmentVersion(String githubProjectName, String branch)
      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