-
Notifications
You must be signed in to change notification settings - Fork 0
dependency_management
fbfreitas edited this page May 25, 2020
·
1 revision
-
Read https://docs.gradle.org/current/userguide/introduction_dependency_management.html for an introduction to the subject.
-
Look into the example in build.gradle, namely
The dependency repository definition
repositories {
mavenCentral()
}
The dependencies definition
dependencies {
compile group: 'joda-time', name: 'joda-time', version: '2.10.1'
compile group: 'org.apache.commons', name: 'commons-text', version: '1.6'
compile group: 'org.json', name: 'json', version: '20180813'
compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.6'
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.4.12.v20180830'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
runtime group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
- Run
./gradlew dependencies
to observe the dependency graph.