I suspect you’re running into https://docs.gradle.org/current/userguide/upgrading_version_5.html#maven_or_ivy_repositories_are_no_longer_queried_for_artifacts_without_metadata_by_default
Before Gradle 6.0, Gradle would download jars without metadata from repositories. In 6.0+, you have to explicitly opt into that behavior.