• /
  • EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Configure the New Relic Gradle plugin

The New Relic Gradle plugin extension allows you to configure the behavior of plugin tasks executed during Gradle builds. Create a plugin extension in the Gradle build files that apply the New Relic plugin, then add any of the following configuration options:

Config option

Description

variantMapsEnabled

Generate unique build IDs for each app variant. Build IDs are unique identifiers assigned to each build of your app. They're helpful for tracking specific builds, especially when you have different versions with multiple builds, such as version 1.1.1 build 0.0.1. Default: true.

uploadMapsForVariant

Specify which variant build types should report ProGuard maps to New Relic. Default: Release

excludeVariantInstrumentation

Exclude specific variants from instrumentation during builds. Default: 'None'

excludePackageInstrumentation

Exclude specific classes whose package name starts with or includes class name patterns from instrumentation during builds. This feature can help when encountering sensitive or problematic class data. Default: 'None'

Supported when used with Gradle 7.4 and higher.

Here are some simple examples showing how to apply plugin configuration options to the agent:

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.