File tree 1 file changed +6
-0
lines changed
src/main/kotlin/com/ebay/plugins/metrics/develocity 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ internal class MetricsForDevelocityPlugin @Inject constructor(
59
59
// Auto-configure the Gradle Enterprise access if the plugin is applied and has been
60
60
// directly configured with a server URL and/or access key.
61
61
settings.plugins.withId(" com.gradle.enterprise" ) {
62
+ // The Develocity plugin is also registered under this ID so we need to avoid running
63
+ // this logic when this is the case.
64
+ if (settings.plugins.hasPlugin(" com.gradle.develocity" )) {
65
+ return @withId
66
+ }
67
+
62
68
@Suppress(" DEPRECATION" ) // GradleEnterpriseExtension is deprecated
63
69
val gradleExt = settings.extensions.getByType(com.gradle.enterprise.gradleplugin.GradleEnterpriseExtension ::class .java)
64
70
settings.gradle.afterProject { project ->
You can’t perform that action at this time.
0 commit comments