Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Nov 20, 2025

Fixes

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':instrumentation:quarkus-resteasy-reactive:quarkus2-testing:buildModel'.
> Invocation of 'Task.project' by task ':instrumentation:quarkus-resteasy-reactive:quarkus2-testing:buildModel' at execution time is unsupported with the configuration cache.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org./
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Configuration cache problems found in this build.

3 problems were found storing the configuration cache.
- Task `:instrumentation:quarkus-resteasy-reactive:quarkus2-testing:buildModel` of type `org.gradle.api.DefaultTask`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
  See https://docs.gradle.org/9.2.1/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types
- Task `:instrumentation:quarkus-resteasy-reactive:quarkus3-testing:buildModel` of type `org.gradle.api.DefaultTask`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
  See https://docs.gradle.org/9.2.1/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types
- Task `:instrumentation:quarkus-resteasy-reactive:quarkus2-testing:buildModel` of type `org.gradle.api.DefaultTask`: invocation of 'Task.project' at execution time is unsupported with the configuration cache.
  See https://docs.gradle.org/9.2.1/userguide/configuration_cache_requirements.html#config_cache:requirements:use_project_during_execution

@trask trask force-pushed the gradle-config-cache-quarkus-resteasy-reactive branch from d886865 to 496bba9 Compare November 20, 2025 04:55
@trask trask marked this pull request as ready for review November 20, 2025 06:27
@trask trask requested a review from a team as a code owner November 20, 2025 06:27

val buildModel = tasks.register("buildModel") {
dependsOn(configurations.named("testRuntimeClasspath"))
val buildModel = if (findProperty("skipTests") as String? != "true") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to avoid this duplicated code with the change above?
maybe it could be in the conventions?

@laurit laurit merged commit 591a28d into open-telemetry:main Nov 20, 2025
88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants