Hello.
I have finally got the go ahead to upgrade our gradle version from 2.14 to whatever is highest (6.0 ATM).
Procedure so war was to init a wrapper, up the version to 4.10, try to build, remove deprecations, then continue upgrading. worked nicely until I hit version 6.0.
After removing the last directly observable deprecations in out plugins, I moved again towards our actual java projects. One of these suddenyl could no longer be built, due to a
TaskDependencyResolveException: Could not determine the dependencies of task :myProject:compileJava
Caused by
IllegalArgumentException: Don’t know hot to determine the build dependencies of [Lorg.gradle.api.file.FileCollection
in `BuildDependenciesOnlyFileCollectionResolverContext.maybeAdd() on line 54.
From what I gather, an array of FileCollection is passed which does not match any of the expected types.
I firmly believe that the problem lies within our buildscripts, but I have no idea where or why, and I am unable to make the connection between buildscript and gradle implementation.
I also receive a deprecation warning on a SINGLE project about a classifier-property that is deprecated and scheduled for removal in 7.0. But I have no idea where that is even used, none of our scripts or plugins mention it anywhere.
Could there be a connection between the two?
More potentially helpful information:
The failing project is a multi-project, parrallel to another multi project, below a common “parent” project.
One of the two produces an EAR lib, the failing one should produce a WAR lib. Sadly, there is no way for me to separate the two.
Applied plugins for the failing project are
java
maven-publish
jaCoCo
spotless
war
spring-boot gradle plugin (1.5.9)
propdeps plugin 0.0.5
spring dependency management
the dependencies are generally declared by
dependencies {
implementation(
'group:artifact:version',
'project(:name)'
}
}
with the project currently declaring 8 artifact and 12 project implementation dependencies, 2 providedCompile dependencies, 4 testImplementation dependencies and eclipse.project.nature = webnature
If anyone has an idea how this can be remedied, or help me find the error I am most likely making, please tell me, any help will be greatly appreciated.
Thank you.