-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
109 lines (87 loc) · 3.12 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
plugins {
id 'java-library'
id 'groovy'
id 'io.spring.dependency-management' version '1.0.3.RELEASE'
id 'org.unbroken-dome.test-sets' version '1.4.2'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.7'
id 'nebula.optional-base' version '3.2.0'
}
sourceCompatibility = 1.8
repositories {
jcenter()
}
sourceSets {
testCommon {
java.srcDirs = ['src/test-common/java']
}
}
configurations {
testCommonImplementation.extendsFrom implementation
}
testSets {
bootTest { dirName = 'boot-test' }
actuatorTest {
extendsFrom bootTest
dirName = 'actuator-test'
}
}
ext {
springVersion = '4.3.11.RELEASE'
springBootVersion = '1.5.6.RELEASE'
slf4jVersion = '1.7.25'
vertxVersion = '3.4.2'
logbackVersion = '1.1.11'
}
dependencies {
api "org.springframework:spring-core:$springVersion"
api "org.springframework:spring-context:$springVersion"
api 'io.vertx:vertx-core'
api "org.springframework.boot:spring-boot:$springBootVersion", optional
api "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion", optional
api "org.springframework.boot:spring-boot-actuator:$springBootVersion", optional
compileOnly "org.springframework.boot:spring-boot-configuration-processor:$springBootVersion"
// Vert.x cluster manager implementations
implementation 'io.vertx:vertx-hazelcast', optional
implementation 'io.vertx:vertx-ignite', optional
implementation 'io.vertx:vertx-infinispan', optional
implementation 'io.vertx:vertx-zookeeper', optional
implementation 'commons-io:commons-io:2.5'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
testImplementation "org.springframework:spring-test:$springVersion"
testImplementation 'org.spockframework:spock-core'
testImplementation 'org.spockframework:spock-spring'
testImplementation "org.slf4j:jcl-over-slf4j:$slf4jVersion"
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"
testImplementation sourceSets.testCommon.output
bootTestImplementation 'org.springframework.boot:spring-boot-starter-test'
bootTestImplementation 'org.springframework.boot:spring-boot-starter-logging'
actuatorTestImplementation 'org.springframework.boot:spring-boot-actuator'
}
dependencyManagement {
dependencies {
dependencySet(group: 'io.vertx', version: vertxVersion) {
entry 'vertx-core'
entry 'vertx-hazelcast'
entry 'vertx-ignite'
entry 'vertx-infinispan'
entry 'vertx-zookeeper'
}
}
testImplementation {
imports {
mavenBom('org.spockframework:spock-bom:1.1-groovy-2.4')
}
}
bootTestImplementation {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
mavenBom('org.spockframework:spock-bom:1.1-groovy-2.4')
}
}
}
testSets.collect { configurations[it.implementationConfigurationName] }
*.exclude group: 'commons-logging'
bootTest.shouldRunAfter test
check.dependsOn bootTest, actuatorTest
apply from: "$rootDir/publishing.gradle"