-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
69 lines (59 loc) · 1.98 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
plugins {
id 'com.github.ben-manes.versions' version '0.39.0'
id 'com.github.hierynomus.license' version '0.15.0'
id 'jacoco'
id 'java'
id 'idea'
id 'org.sonarqube' version '3.3'
id 'org.springframework.boot' version '1.5.22.RELEASE'
}
clean {
delete 'data'
}
license {
ignoreFailures true
header = file('LICENSE')
}
jar {
archiveBaseName = 'pivio-server'
archiveVersion = '1.1.0'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
//TODO: Remove override of versions provided by Spring Boot dependency management with Spring Boot update.
ext['assertj.version'] = '3.9.0'
dependencies {
compile 'com.flipkart.zjsonpatch:zjsonpatch:0.4.11'
compile 'org.apache.commons:commons-lang3:3.12.0'
compile 'org.elasticsearch.plugin:delete-by-query:' + project.properties["dep.elasticsearch"]
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
compile 'org.springframework.boot:spring-boot-starter-web'
testCompile 'org.apache.commons:commons-text:1.9'
testCompile 'org.awaitility:awaitility:4.1.1'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.testcontainers:testcontainers:1.16.2'
}
// see https://github.com/ben-manes/gradle-versions-plugin
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
tasks.withType(Test) {
systemProperty 'gradleIsRunning', true
}
tasks.named('wrapper') {
gradleVersion = '6.9'
distributionType = Wrapper.DistributionType.ALL
}