Gradle project vs module dependency? -


i'm familiar compile project(':a') syntax 1 submodule of multi-module project declares compile dependency on submodule. came across compile module(':a') (sorry, don't have reference). how's 2nd 1 different 1st?

straight docs:

23.4.2. client module dependencies

client module dependencies allow declare transitive dependencies directly in build script. replacement module descriptor in external repository.

example 23.8. client module dependencies - transitive dependencies

build.gradle dependencies {     runtime module("org.codehaus.groovy:groovy:2.4.4") {         dependency("commons-cli:commons-cli:1.0") {             transitive = false         }         module(group: 'org.apache.ant', name: 'ant', version: '1.9.6') {             dependencies "org.apache.ant:ant-launcher:1.9.6@jar",                          "org.apache.ant:ant-junit:1.9.6"         }     } } 

see documentation here: https://docs.gradle.org/current/userguide/userguide_single.html#sub:client_module_dependencies


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo