I am attempting to force dependency versions between subprojects as described here: https://docs.gradle.org/current/userguide/java_platform_plugin.html#sec:java_platform_consumption
What is the expected behavior if a configuration depends on 2 enforced platforms with version conflicts? For me, this would ideally fail the build. However, I haven’t seen consistent outcomes. Sometimes the lower version is selected and sometimes the higher version is used. It appears to depend on the order the platforms were added to the configuration (sometimes transitively). Is there any way for these conflicts to fail the build? (failOnVersionConflicts doesn’t seem to do anything in this case).