-
Notifications
You must be signed in to change notification settings - Fork 0
dependency_management
Filipe Freitas edited this page Mar 14, 2022
·
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
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.postgresql', name: 'postgresql', version: '42.+'
implementation group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.4.12.v20180830'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.+'
runtimeOnly group: 'org.slf4j', name: 'slf4j-simple', version: '1.+'
testImplementation group: 'junit', name: 'junit', version: '4.+'
}
- Run
./gradlew dependencies
to observe the dependency graph.