forked from gradle/gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (41 loc) · 891 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
plugins {
id 'java-library'
}
repositories {
mavenCentral()
}
// tag::dependencies[]
dependencies {
implementation 'org.apache.commons:commons-lang3:3.0'
// the following dependency brings lang3 3.8.1 transitively
implementation 'com.opencsv:opencsv:4.6'
}
// end::dependencies[]
// tag::fail-on-version-conflict[]
configurations.all {
resolutionStrategy {
failOnVersionConflict()
}
}
// end::fail-on-version-conflict[]
// tag::fail-on-dynamic[]
configurations.all {
resolutionStrategy {
failOnDynamicVersions()
}
}
// end::fail-on-dynamic[]
// tag::fail-on-changing[]
configurations.all {
resolutionStrategy {
failOnChangingVersions()
}
}
// end::fail-on-changing[]
// tag::fail-on-unstable[]
configurations.all {
resolutionStrategy {
failOnNonReproducibleResolution()
}
}
// end::fail-on-unstable[]