-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (47 loc) · 1.21 KB
/
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
48
49
50
51
52
53
54
55
plugins {
//support Idea IDE
id 'idea'
id "io.spring.dependency-management" version "1.0.9.RELEASE"
// Build uber-jar
id 'com.github.johnrengelman.shadow' version '5.2.0' apply false
}
idea {
project {
languageLevel = 13
}
module {
downloadJavadoc = true
downloadSources = true
}
}
allprojects {
group "ru.otus"
repositories {
mavenCentral()
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
dependencies {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.2.6.RELEASE")
}
dependency("com.google.guava:guava:${Versions.guava}")
dependency("org.testcontainers:junit-jupiter:${Versions.testcontainers}")
dependency("com.google.code.gson:gson:${Versions.gson}")
dependency("org.glassfish:javax.json:${Versions.glassfishJson}")
}
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
}
}
}
//print versions from BOM
task managedVersions {
doLast {
dependencyManagement.managedVersions.each {
println it
}
}
}