newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
202 stars 143 forks source link

agent-gradle-plugin breaks Gradle Configuration cache on an Android project #692

Closed lwasyl closed 2 years ago

lwasyl commented 2 years ago

Description

When applying newrelic Gradle plugin from com.newrelic.agent.android:agent-gradle-plugin:6.4.1, Gradle configuration cache is broken

Expected Behavior

Newrelic plugin doesn't break configuration cache

Troubleshooting or NR Diag results

Not applicable

Steps to Reproduce

Your Environment

openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12)
OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12, mixed mode, sharing)

Additional context

Here's Gradle log:

2 problems were found storing the configuration cache.
- Plugin 'newrelic': read system property 'NewRelic.AgentArgs'
  See https://docs.gradle.org/7.3.3/userguide/configuration_cache.html#config_cache:requirements:undeclared_sys_prop_read
- Task `:app:transformClassesWithNewrelicTransformForDevDebug` of type `com.android.build.gradle.internal.pipeline.TransformTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.3.3/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

image

configuration-cache-report (1).html.zip

lwasyl commented 2 years ago

I'm not sure if this is the right repository, I couldn't find any repository relevant to gradle or android, so I picked this one. Feel free to forward the report internally to a relevant team

meiao commented 2 years ago

Redirecting to the proper repository.

natanloterio commented 1 year ago

Guys, which is the proper repository?

kartik0198 commented 1 year ago

@meiao kindly pick this, it's been unpicked from last 1 year. Couldn't find any newrelic android agent repository to report this issue there.

meiao commented 1 year ago

@natanloterio @kartik0198 The agent-gradle-plugin is the responsibility of a different team. Currently their repository is private, but they are in the process of open sourcing it.

I will post the link here when it is available.

SmialyKot commented 1 year ago

Hi @meiao, any update on this issue?

meiao commented 1 year ago

Still waiting on the Android team.

tamtom commented 1 year ago

same still waiting