It's the 1st time to use gradle in our project and we're using the local maven repository. Now I have a question: Is it possible to make gradle download dependency merging into local maven repository automatically? Is there any configuration or plugin to resolve? Thanks a lot!
Bookmark this question. Show activity on this post.
Declaring dependencies. Gradle uses the same dependency identifier components as Maven: group ID, artifact ID and version. It also supports classifiers.
Gradle ships with a Maven plugin, which adds support to convert a Gradle file to a Maven POM file. It can also deploy artifacts to Maven repositories. The plugin uses the group and the version present in the Gradle file and adds them to the POM file. Also, it automatically takes the artifactId from the directory name.
Gradle declares dependencies on JAR files inside your project's module_name /libs/ directory (because Gradle reads paths relative to the build.gradle file). This declares a dependency on version 12.3 of the "app-magic" library, inside the "com.example.android" namespace group.
Short answer is: no way!
Gradle has its own cache, although it can read the maven local repo like this:
repositories {
mavenLocal()
mavenCentral()
}
If some dependency not found in maven local repo, Gradle will download it from maven central and cache it in ~/.gradle/caches/...
see http://forums.gradle.org/gradle/topics/cache_dependencies_into_local_maven_repository_from_gradle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With