0

I was looking for a way to add the downloaded jar files under a particular library (In this case, I would like to add jars under "Gradle Dependencies" which already contains some jars inside).

I was attempting to use " Build Path > Configure Build Path" but the jar files I added are under the "root" directory above "Gradle Dependencies" Any guidance?

Community
  • 1
  • 1
jsh6303
  • 2,010
  • 3
  • 24
  • 50

1 Answers1

1

The Gradle Dependencies "library" (it's proper name in Eclipse vernacular is Classpath Container) is managed by the Gradle plugin and is not directly editable by the user. To add something to that library, you'd have to include it in your Gradle build file (build.gradle).

Normally you don't specify local JARs as Gradle dependencies (like Maven, Gradle wants all dependencies to be located in a repository). But if you really want that, see https://stackoverflow.com/a/20700183/639520

Community
  • 1
  • 1
E-Riz
  • 31,431
  • 9
  • 97
  • 134