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
We are using gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1 (latest) and it seems the LicenseBasePlugin breaks the Gradle Configuration Cache.
Adding the plugin to a project and execute a task with --configuration-cache (e.g.: gradle clean --configuration-cache) results in this issue:
Plugin class 'com.hierynomus.gradle.license.LicenseBasePlugin': read system property 'file.encoding'
See https://docs.gradle.org/7.1.1/userguide/configuration_cache.html#config_cache:requirements:undeclared_sys_prop_read
Also, if you open the generated report, it has the stacktrace (I truncated it):
org.gradle.api.InvalidUserCodeException: Read system property 'file.encoding'
at org.gradle.configurationcache.SystemPropertyAccessListener.systemPropertyQueried(SystemPropertyAccessListener.kt:92)
at org.gradle.internal.classpath.Instrumented$DecoratingProperties.getProperty(Instrumented.java:313)
at org.gradle.internal.classpath.Instrumented$DecoratingProperties.getProperty(Instrumented.java:307)
at org.gradle.internal.classpath.Instrumented$DecoratingProperties.get(Instrumented.java:327)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1884)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3870)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:199)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(DefaultGroovyMethods.java:407)
at org.codehaus.groovy.runtime.dgm$305.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:247)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at com.hierynomus.gradle.license.LicenseBasePlugin$_createExtension_closure2.doCall(LicenseBasePlugin.groovy:80)
...
The text was updated successfully, but these errors were encountered:
We are using
gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1
(latest) and it seems theLicenseBasePlugin
breaks the Gradle Configuration Cache.Adding the plugin to a project and execute a task with
--configuration-cache
(e.g.:gradle clean --configuration-cache
) results in this issue:Where the linked docs page gives more details.
Also, if you open the generated report, it has the stacktrace (I truncated it):
The text was updated successfully, but these errors were encountered: