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
A problem occurred configuring root project 'my-project.
> Could not resolve all dependencies for configuration ':unifiedClasspath'.
> Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
> Failed to query the value of property 'languageVersion'.
> Not allowed to resolve configuration ':unshaded' at configuration time (https://guides.gradle.org/performance/#don_t_resolve_dependencies_at_configuration_time). Please upgrade your plugins and double-check your gradle scripts (see stacktrace)
If I add --stacktrace to the gradle call I can see the place this is coming from is:
Caused by: org.gradle.api.GradleException: Not allowed to resolve configuration ':shadeTransitively' at configuration time (https://guides.gradle.org/performance/#don_t_resolve_dependencies_at_configuration_time). Please upgrade your plugins and double-check your gradle scripts (see stacktrace)
at com.palantir.gradle.versions.VersionsPropsPlugin.lambda$setupConfiguration$13(VersionsPropsPlugin.java:223)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:123)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:95)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:83)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:43)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:245)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:157)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:61)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:346)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:249)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:141)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy42.beforeResolve(Unknown Source)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.performPreResolveActions(DefaultConfiguration.java:805)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$400(DefaultConfiguration.java:159)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$1.call(DefaultConfiguration.java:653)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$1.call(DefaultConfiguration.java:646)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveGraphIfRequired(DefaultConfiguration.java:646)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.lambda$resolveExclusively$4(DefaultConfiguration.java:626)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$CalculatedModelValueImpl.update(DefaultProjectStateRegistry.java:464)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveExclusively(DefaultConfiguration.java:623)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveToStateOrLater(DefaultConfiguration.java:610)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getResolvedConfiguration(DefaultConfiguration.java:585)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getResolvedConfiguration(Unknown Source)
at com.palantir.gradle.shadowjar.ShadowJarPlugin.lambda$setupShadowJarToShadeTheCorrectDependencies$13(ShadowJarPlugin.java:140)
at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:183)
at com.palantir.gradle.shadowjar.ShadowJarPlugin.lambda$setupShadowJarToShadeTheCorrectDependencies$14(ShadowJarPlugin.java:174)
at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:72)
at org.gradle.api.internal.provider.AbstractMinimalProvider.calculateValue(AbstractMinimalProvider.java:103)
at org.gradle.api.internal.provider.Collectors$ElementsFromCollectionProvider.collectEntries(Collectors.java:216)
at org.gradle.api.internal.provider.AbstractCollectionProperty$CollectingSupplier.calculateValue(AbstractCollectionProperty.java:337)
at org.gradle.api.internal.provider.AbstractCollectionProperty.calculateValueFrom(AbstractCollectionProperty.java:184)
at org.gradle.api.internal.provider.AbstractCollectionProperty.calculateValueFrom(AbstractCollectionProperty.java:37)
at org.gradle.api.internal.provider.AbstractProperty.doCalculateValue(AbstractProperty.java:133)
at org.gradle.api.internal.provider.AbstractProperty.calculateOwnValue(AbstractProperty.java:127)
at org.gradle.api.internal.provider.AbstractMinimalProvider.get(AbstractMinimalProvider.java:84)
at org.gradle.api.internal.provider.CollectionPropertyInternal.size(CollectionPropertyInternal.java:28)
at org.gradle.api.internal.provider.Collectors$ElementsFromCollectionProvider.size(Collectors.java:259)
at org.gradle.api.internal.provider.Collectors$TypedCollector.size(Collectors.java:349)
at org.gradle.api.internal.collections.AbstractIterationOrderRetainingElementSource.size(AbstractIterationOrderRetainingElementSource.java:76)
at org.gradle.api.internal.collections.AbstractIterationOrderRetainingElementSource.estimatedSize(AbstractIterationOrderRetainingElementSource.java:83)
at org.gradle.api.internal.collections.FilteredCollection$FilteringIterator.<init>(FilteredCollection.java:115)
at org.gradle.api.internal.collections.FilteredCollection.iteratorNoFlush(FilteredCollection.java:183)
at org.gradle.api.internal.DefaultDomainObjectCollection.iteratorNoFlush(DefaultDomainObjectCollection.java:136)
at org.gradle.api.internal.DefaultDomainObjectCollection.configureEach(DefaultDomainObjectCollection.java:174)
at com.palantir.gradle.versions.VersionsPropsPlugin.provideVersionsFromStarDependencies(VersionsPropsPlugin.java:268)
at com.palantir.gradle.versions.VersionsPropsPlugin.lambda$setupConfiguration$14(VersionsPropsPlugin.java:204)
at org.gradle.internal.ImmutableActionSet$SingletonSet.execute(ImmutableActionSet.java:225)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.runDependencyActions(DefaultConfiguration.java:481)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.runDependencyActions(DefaultConfiguration.java:488)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationResolvableDependencies.getDependencies(DefaultConfiguration.java:1769)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationResolvableDependencies_Decorated.getDependencies(Unknown Source)
at org.gradle.api.plugins.internal.AbstractConfigurationUsageContext.getDependencies(AbstractConfigurationUsageContext.java:53)
at org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication.populateFromComponent(DefaultMavenPublication.java:317)
at org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication.getArtifacts(DefaultMavenPublication.java:502)
at org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication_Decorated.getArtifacts(Unknown Source)
at com.palantir.baseline.plugins.BaselineJavaVersions.isLibraryPublication(BaselineJavaVersions.java:112)
at com.palantir.baseline.plugins.BaselineJavaVersions.lambda$isLibrary$3(BaselineJavaVersions.java:93)
at com.palantir.baseline.plugins.BaselineJavaVersions.isLibrary(BaselineJavaVersions.java:95)
at com.palantir.baseline.plugins.BaselineJavaVersions.lambda$apply$0(BaselineJavaVersions.java:61)
at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:72)
at org.gradle.api.internal.provider.AbstractMinimalProvider.calculatePresence(AbstractMinimalProvider.java:79)
at org.gradle.api.internal.provider.MappingProvider.calculatePresence(MappingProvider.java:50)
at org.gradle.api.internal.provider.AbstractProperty.calculatePresence(AbstractProperty.java:58)
at org.gradle.api.internal.provider.AbstractProperty.calculatePresence(AbstractProperty.java:58)
... 228 more
adding shadeTransitively and unshaded to the excludedConfigurations settings of GCV result in other errors so there is currently no permanent work around. In order to update my versions.lock file I have to temporarily comment out this plugin and it's configuration lines, run --write-locks to generate the new file, and then re-enable it.
The text was updated successfully, but these errors were encountered:
The short error looks like this:
If I add --stacktrace to the gradle call I can see the place this is coming from is:
adding shadeTransitively and unshaded to the excludedConfigurations settings of GCV result in other errors so there is currently no permanent work around. In order to update my versions.lock file I have to temporarily comment out this plugin and it's configuration lines, run --write-locks to generate the new file, and then re-enable it.
The text was updated successfully, but these errors were encountered: