micrometer icon indicating copy to clipboard operation
micrometer copied to clipboard

"./gradlew clean check" fails

Open izeye opened this issue 1 year ago • 2 comments

./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
...

izeye avatar Oct 19 '24 01:10 izeye

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.

jonatan-ivanov avatar Oct 19 '24 02:10 jonatan-ivanov

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.

shakuzen avatar Oct 22 '24 03:10 shakuzen

I updated the issue title to reflect this is only a problem with JDK 11 with #5735 having been merged.

shakuzen avatar Jan 22 '25 02:01 shakuzen