You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build: Gradle
fails to build on JDK 16 with the following exception:
groovy.lang.MissingPropertyException: No such property: count for class: com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
at groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:1019)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1963)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1938)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3870)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:197)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:468)
at com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer$ServiceStream.propertyMissing(ServiceFileTransformer.groovy)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Steps to Reproduce
Create a new demo project using Micronaut.io web, or
Build fails, with groovy.lang.MissingPropertyException
Environment Information
Operating System: Linux Ubuntu 19.04
Micronaut Version: 2.5.0
JDK Version: Oracle JDK 16
Example Application
See attached ZIP
Analysis / details
The bug is caused by an obsolete version of com.github.johnrengelman.shadow plugin configured by the web wizard. The configured version is 6.1.0, that suffers from GROOVY-9292. The issue was fixed in Shadow#655 and was released in Shadow plugin release 7.0. This release however requires Gradle 7.0.
Please upgrade the dependency in the rocker template. I'd do that myself, but that would tie Micronaut-starter tp Gradle 7.0, which does not seem as a good idea, since the gradle-wrapper.properties template in master still declares gradle-6.7 (?).
The text was updated successfully, but these errors were encountered:
Description
A project generated by Micronaut Starter:
fails to build on JDK 16 with the following exception:
Steps to Reproduce
./gradlew build
demo.zip
Expected Behaviour
The project builds :-)
Actual Behaviour
Build fails, with
groovy.lang.MissingPropertyException
Environment Information
Example Application
See attached ZIP
Analysis / details
The bug is caused by an obsolete version of
com.github.johnrengelman.shadow
plugin configured by the web wizard. The configured version is6.1.0
, that suffers from GROOVY-9292. The issue was fixed in Shadow#655 and was released in Shadow plugin release 7.0. This release however requires Gradle 7.0.Please upgrade the dependency in the rocker template. I'd do that myself, but that would tie Micronaut-starter tp Gradle 7.0, which does not seem as a good idea, since the
gradle-wrapper.properties
template in master still declaresgradle-6.7
(?).The text was updated successfully, but these errors were encountered: