New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test framework configuration fails with Gradle 7.3 #296
Comments
Got the same error when upgrading to Gradle 7.3. FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'demo'.
> The value for task ':test' property 'testFrameworkProperty' is final and cannot be changed any further. |
Also seeing the same problem. We're using Micronaut 2.5.12 and the plugin 1.5.4 on AdoptOpenJDK 8, and get the same failure trying to upgrade to Gradle 7.3. I also get the same problem creating Micronaut 2 or 3 apps in Launch and upgrading them to Gradle 7.3. On our projects we're using the Gradle 7 version catalog feature across all our projects, so it's in our best interest to track these Gradle upgrades, but this issue is a blocker for that. I will try the workaround noted above. This is the error I get upgrading a default Launch project (3.1.3, JDK8, JUnit5):
|
We ran into the same issue. |
We can’t upgrade to Gradle 7.3 because of this issue: micronaut-projects/micronaut-gradle-plugin#296
Error seems to have been introduced with micronaut and gradle 7.3.0. Using gradle v7.2.0 instead of latest in Dockerfile. See micronaut-projects/micronaut-gradle-plugin#296 Ref #9
This is going to be changed on the Gradle side. See: gradle/gradle#19058 |
I understand that Gradle is going to revert the change, but I'm not sure how we can prepare for the change in 8.0. Basically, we have this code: micronaut-gradle-plugin/src/main/java/io/micronaut/gradle/MicronautLibraryPlugin.java Lines 99 to 106 in a8161de
which is executed in an An option would be to configure |
Expected Behavior
A project generated from Launch should work out of the box using Gradle 7.3.
Actual Behaviour
Running the build fails with:
A problem occurred configuring root project 'demo'.
The stack trace leads to another ordering issue in the Gradle plugin:
Steps To Reproduce
Create a Gradle project using Micronaut Launch, don't specify any testing framework.
Run the build with Gradle 7.3-rc-3, see it fail.
Workaround is to add:
to the build file.
Environment Information
No response
Example Application
No response
Version
3.1.3
The text was updated successfully, but these errors were encountered: