Skip to content
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

LicenseBasePlugin seems to break Configuration Cache #198

Open
jonatan-ivanov opened this issue Jul 15, 2021 · 0 comments
Open

LicenseBasePlugin seems to break Configuration Cache #198

jonatan-ivanov opened this issue Jul 15, 2021 · 0 comments

Comments

@jonatan-ivanov
Copy link

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

Where the linked docs page gives more details.

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)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant