Gradle%20auto%20generated%20this%20in%20my%20build.gradle%2C%20but%20it%20can't%20find%20…
- User
Gradle%20auto%20generated%20this%20in%20my%20build.gradle%2C%20but%20it%20can't%20find%20libs.%20Where%20is%20that%20defined%3F%0A%0A%0Adependencies%20%7B%0A%20%20%20%20%2F%2F%20Use%20JUnit%20Jupiter%20for%20testing.%0A%20%20%20%20testImplementation(libs.junit.jupiter)%0A
- Assistant
It looks like you're referring to a Gradle project that is using the new version catalog feature for managing dependencies. When you see
libs.junit.jupiter, it generally indicates that the dependency is defined in a version catalog file.Here's how to find and define the
libscatalog:-
Version Catalog Definition: In Gradle, version catalogs can be defined in a file called
libs.versions.toml. This file is usually located in thegradledirectory at the root of your project ().
-