I have two Gradle projects, A and B B is a simple Java application and is consumed by A as a compiled project dependency. A is a web application.
Both A and B use the java plugin, A also uses the war plugin.
When building A I get the following error:
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':war'. > Configuration with name 'default' not found.
When building separately B I get no errors. When creating from the root, I also get no errors. The problem only occurs when creating A
I also tried copying B.jar to lib A folder and installing the dependency:
compile files("lib/B.jar")
The string in this case works fine.
What configurations must be enabled to avoid errors?
source share