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
Note: this seems to be fixed already in 11.2.0, but is a problem for 8.8.0, 9.4.1 and 10.1.0.
I'm trying to upgrade the Guava version used by Gradle itself, and after the upgrade this plugin fails to run. The culprit seems to be on line 60 here where the private size field is referred instead of the public size() method:
The fix should be to simply replace the field reference with the method reference.
Here's the exception I get:
> Task :generateLock FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generateLock'.
> Exception evaluating property 'size' for com.google.common.collect.RegularImmutableList, Reason: groovy.lang.MissingPropertyException: No such property: size for class: java.lang.String
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
...
Caused by: groovy.lang.MissingPropertyException: Exception evaluating property 'size' for com.google.common.collect.RegularImmutableList, Reason: groovy.lang.MissingPropertyException: No such property: size for class: java.lang.String
at nebula.plugin.dependencylock.utils.ConfigurationFilters.safelyHasAResolutionAlternative(ConfigurationFilters.groovy:60)
at nebula.plugin.dependencylock.utils.ConfigurationFilters$safelyHasAResolutionAlternative.call(Unknown Source)
at nebula.plugin.dependencylock.tasks.GenerateLockTask$_lockableConfigurations_closure3.doCall(GenerateLockTask.groovy:102)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.api.specs.internal.ClosureSpec.isSatisfiedBy(ClosureSpec.java:33)
at org.gradle.api.internal.collections.CollectionFilter.filter(CollectionFilter.java:46)
at org.gradle.api.internal.collections.FilteredCollection$FilteringIterator.findNext(FilteredCollection.java:122)
at org.gradle.api.internal.collections.FilteredCollection$FilteringIterator.next(FilteredCollection.java:140)
at org.gradle.api.internal.DefaultDomainObjectCollection.findAll(DefaultDomainObjectCollection.java:442)
at org.gradle.api.internal.DefaultNamedDomainObjectSet.findAll(DefaultNamedDomainObjectSet.java:82)
at org.gradle.api.NamedDomainObjectSet$findAll$0.call(Unknown Source)
at nebula.plugin.dependencylock.tasks.GenerateLockTask.lockableConfigurations(GenerateLockTask.groovy:100)
at nebula.plugin.dependencylock.tasks.GenerateLockTask$lockableConfigurations.callStatic(Unknown Source)
at nebula.plugin.dependencylock.tasks.GenerateLockTask.lock(GenerateLockTask.groovy:91)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
The text was updated successfully, but these errors were encountered:
Note: this seems to be fixed already in 11.2.0, but is a problem for 8.8.0, 9.4.1 and 10.1.0.
I'm trying to upgrade the Guava version used by Gradle itself, and after the upgrade this plugin fails to run. The culprit seems to be on line 60 here where the private
size
field is referred instead of the publicsize()
method:gradle-dependency-lock-plugin/src/main/groovy/nebula/plugin/dependencylock/utils/ConfigurationFilters.groovy
Lines 55 to 66 in 10a7774
The fix should be to simply replace the field reference with the method reference.
Here's the exception I get:
The text was updated successfully, but these errors were encountered: