This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
96 lines (81 loc) · 2.65 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
/*
* Copyright 2020 IBM Inc. All rights reserved
* SPDX-License-Identifier: Apache2.0
*/
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.1.15.RELEASE"
}
}
plugins {
id 'java'
id 'nebula.release' version '15.3.0'
}
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
project.group = groupId
project.version = version
configurations.all {
resolutionStrategy {
cacheDynamicVersionsFor 0, "seconds"
cacheChangingModulesFor 0, "seconds"
}
}
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Greenwich.SR6'
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-stream-binder-kafka'
implementation 'org.springframework.cloud:spring-cloud-stream-binder-kafka-streams'
implementation 'com.google.guava:guava:29.0-jre'
implementation 'org.apache.commons:commons-lang3:3.11'
annotationProcessor 'org.projectlombok:lombok:1.18.+'
compileOnly 'org.projectlombok:lombok:1.18.+'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.cloud:spring-cloud-stream-test-support'
testImplementation 'org.apache.kafka:kafka-streams-test-utils'
testImplementation group: 'org.springframework.cloud', name: 'spring-cloud-stream', classifier: 'test-binder'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.+'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.+'
testCompileOnly 'org.projectlombok:lombok:1.18.+'
}
sourceSets {
test {
java {
srcDir 'src/test/unit/java'
}
}
integrationTest {
java {
srcDir 'src/test/integ/java'
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
resources.srcDir 'src/test/resources'
}
}
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
}
test.useJUnitPlatform()
integrationTest.useJUnitPlatform()
configurations {
integrationTestCompile.extendsFrom(testImplementation)
integrationTestRuntime.extendsFrom(testRuntime)
}
configurations.compile { transitive = false }
nebulaRelease {
releaseBranchPatterns = [/main/] as Set
}