micrometer-metrics / micrometer

An application observability facade for the most popular observability tools. Think SLF4J, but for observability.
https://micrometer.io
Apache License 2.0
4.5k stars 994 forks source link

"./gradlew clean check" fails #5599

Open izeye opened 1 month ago

izeye commented 1 month ago

./gradlew clean check fails as follows:

...
* What went wrong:
Could not determine the dependencies of task ':micrometer-osgi-test:test'.
> Could not create task ':micrometer-osgi-test:testingBundle'.
   > Could not create task of type 'Bundle'.
      > Could not create an instance of type aQute.bnd.gradle.BundleTaskExtension.
         > Cannot change attributes of configuration ':micrometer-osgi-test:compileClasspath' after it has been locked for mutation
...
jonatan-ivanov commented 1 month ago

Thank you for letting us know! I was able to repro it even with simply ./gradlew check. ./gradlew test is ok though. It seems the order of configuring things is different depending on which task you want to execute.

shakuzen commented 1 month ago

Until this is fixed, I have been using the default task (which is build) via ./gradlew, which will also run the check task. I've updated the contributing guide to not suggest using ./gradlew check for now.