-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (79 loc) · 2.92 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
import groovy.xml.XmlUtil
buildscript
{
apply from: "$rootDir/gradle/envConfig.gradle"
ext { springBootVersion = '2.3.4.RELEASE' }
repositories
{
mavenLocal()
mavenCentral()
}
dependencies
{
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:${sonarqubePluginVersion}"
}
}
repositories
{
mavenLocal()
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'war'
apply from: "$rootDir/gradle/jacoco.gradle"
apply from: "$rootDir/gradle/publishMaven.gradle"
group = 'com.github.raystorm'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
configurations.all
{
exclude module: 'spring-boot-starter-logging'
resolutionStrategy
{
force "org.apache.kafka:kafka-clients:${kafkaVersion}"
}
}
dependencies
{
compile('org.springframework.boot:spring-boot-starter-web')
{
exclude group: 'com.fasterxml.jackson.core', module:'jackson-databind'
exclude group: 'com.fasterxml.jackson.datatype', module: 'jackson-datatype-jdk8'
exclude group: 'com.fasterxml.jackson.datatype', module: 'jackson-datatype-jsr310'
exclude group: 'com.fasterxml.jackson.module', module: 'jackson-module-parameter-names'
exclude group: 'org.apache.kafka' , module: 'kafka-clients'
}
compile("com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}")
compile("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
compile("com.fasterxml.jackson.core:jackson-core:${jacksonVersion}")
compile("com.fasterxml.jackson.module:jackson-module-parameter-names:${jacksonVersion}")
compile("org.springframework.boot:spring-boot-starter-log4j2")
//compile("org.springframework.boot:spring-boot-starter-aop")
compile("org.springframework.kafka:spring-kafka:2.5.6.RELEASE")
compile("org.apache.kafka:kafka-streams:${kafkaVersion}")
{ exclude group: 'org.apache.kafka' , module: 'kafka-clients' }
compile("org.apache.kafka:kafka-clients:${kafkaVersion}")
testCompile('org.springframework.kafka:spring-kafka-test')
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testCompile('org.springframework.boot:spring-boot-starter-test')
// cucumber
testCompile "io.cucumber:cucumber-java:${cucumberVersion}"
testCompile "io.cucumber:cucumber-junit:${cucumberVersion}"
testCompile "io.cucumber:cucumber-spring:${cucumberVersion}"
}
test
{
useJUnitPlatform()
maxParallelForks = 1
forkEvery = 0
testLogging { exceptionFormat = 'full' }
}