-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (80 loc) · 3.07 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
ext {
springBootVersion = '2.0.0.RC1'
dockerPluginVersion = '1.2'
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/release" }
maven { url "https://plugins.gradle.org/m2/"}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:1.4.17"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5"
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply from: "gradle/boot.gradle"
apply from: "gradle/integrationTest.gradle"
apply from: "gradle/test.gradle"
apply from: "gradle/coverage.gradle"
apply from: "gradle/check.gradle"
apply from: "gradle/sonar.gradle"
group = 'pl.java.scalatech'
version = '0.0.1-SNAPSHOT'
mainClassName = "pl.java.scalatech.GitUserInfoCollectorApplication"
sourceCompatibility = 1.8
archivesBaseName = 'gitInfo'
compileJava.options.fork = true
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-cache')
compile('org.springframework.boot:spring-boot-starter-validation')
compile('org.springframework.boot:spring-boot-starter-web')
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.5'
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.7.0'
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.7.0'
compile group: 'org.jolokia', name: 'jolokia-core', version: '1.3.3'
compile 'com.google.guava:guava:20.+'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.9.4'
compileOnly('org.springframework.boot:spring-boot-configuration-processor')
compile('org.projectlombok:lombok')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile 'com.github.tomakehurst:wiremock-standalone:2.14.0'
testCompile group: 'pl.pragmatists', name: 'JUnitParams', version: '1.1.1'
}
sourceSets {
main { compileClasspath += configurations.compile }
test {
compileClasspath += configurations.compile
runtimeClasspath += configurations.compile
}
}
task makeDirs(group: 'startup', description: 'create dictionary infrastucture'){
doFirst(){
def sources = [sourceSets.main, sourceSets.test]
sources*.allSource*.srcDirs.flatten().each { File srcDir ->
srcDir.mkdirs()
}
}
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.springframework') {
details.useVersion '5.0.2.RELEASE'
}
}
}
task wrapper(type: Wrapper) {
}