← All recipes
Open source

Add the Develocity Maven extension

Recipe IDorg.openrewrite.maven.AddDevelocityMavenExtension
Artifactorg.openrewrite:rewrite-maven

To integrate the Develocity Maven extension into Maven projects, ensure that the develocity-maven-extension is added to the .mvn/extensions.xml file if not already present. Additionally, configure the extension by adding the .mvn/develocity.xml configuration file.

Single recipeApache 2.0

Usage

You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.maven.AddDevelocityMavenExtension --recipe-option "server=https://scans.gradle.com/"

If the recipe isn’t available locally, install it with:

mod config recipes jar install org.openrewrite:rewrite-maven:8.88.0

Options

NameTypeDescription
versionStringA maven-compatible version number to select the gradle-enterprise-maven-extension version.
e.g. 1.17.4
serverrequiredStringThe URL of the Develocity server.
e.g. https://scans.gradle.com/
allowUntrustedServerBooleanWhen set to true the extension will be configured to allow unencrypted http connections with the server. If set to false or omitted, the extension will refuse to communicate without transport layer security enabled.
e.g. true
fileFingerprintsBooleanWhen set to true the extension will capture additional information about the inputs to Maven goals. This increases the size of build scans, but is useful for diagnosing issues with goal caching.
e.g. true
uploadInBackgroundBooleanWhen set to false the extension will not upload build scan in the background. By default, build scans are uploaded in the background after the build has finished to avoid blocking the build process.
e.g. false
publishCriteriaPublishCriteriaWhen set to Always the extension will publish build scans of every single build. This is the default behavior when omitted.When set to Failure the extension will only publish build scans when the build fails. When set to Demand the extension will only publish build scans when explicitly requested.
e.g. Always

Data tables

Structured output this recipe can produce.

  • Source files that had resultsSource files that were modified by the recipe run.org.openrewrite.table.SourcesFileResults
  • Source files that had search resultsSearch results that were found during the recipe run.org.openrewrite.table.SearchResults
  • Source files that errored on a recipeThe details of all errors produced by a recipe run.org.openrewrite.table.SourcesFileErrors
  • Recipe performanceStatistics used in analyzing the performance of recipes.org.openrewrite.table.RecipeRunStats