-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
129 lines (104 loc) · 4.57 KB
/
build.gradle.kts
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
object Version {
const val RABBITMQ_MOCK = "1.0.10"
const val CUCUMBER = "1.2.5"
const val JAVAX = "1"
const val JJWT = "0.9.0"
const val LOGSTASH = "5.0"
const val MONGOBEE = "0.13"
const val MAPSTRUCT = "1.3.0.Final"
const val CSV = "3.11.5"
}
plugins {
id("org.springframework.boot") version "2.1.6.RELEASE"
id("io.spring.dependency-management") version "1.0.7.RELEASE"
kotlin("jvm") version "1.3.40"
kotlin("plugin.spring") version "1.3.40"
kotlin("kapt") version "1.3.40"
}
group = "com.navid.test"
version = "0.0.1"
java.sourceCompatibility = JavaVersion.VERSION_1_8
val developmentOnly by configurations.creating
configurations {
runtimeClasspath {
extendsFrom(developmentOnly)
}
implementation {
exclude(module = "spring-boot-starter-tomcat")
exclude(module = "log4j-to-slf4j")
exclude(group = "com.vaadin.external.google", module = "android-json")
exclude(group = "org.springframework.cloud", module = "spring-cloud-starter-netflix-ribbon")
}
}
repositories {
mavenCentral()
}
extra["springCloudVersion"] = "Greenwich.SR1"
dependencies {
// Metrics, Pull strategy
implementation("io.micrometer:micrometer-registry-jmx")
implementation("io.micrometer:micrometer-registry-prometheus")
"org.springframework.boot:spring-boot-starter".let { base ->
implementation("$base-actuator")
implementation("$base-cache")
implementation("$base-mail")
implementation("$base-data-mongodb-reactive")
implementation("$base-security")
implementation("$base-webflux")
implementation("$base-logging")
implementation("$base-validation")
}
"com.fasterxml.jackson".let { base ->
implementation("$base.module:jackson-module-kotlin")
implementation("$base.module:jackson-module-afterburner")
implementation("$base.datatype:jackson-datatype-json-org")
implementation("$base.datatype:jackson-datatype-hppc")
implementation("$base.datatype:jackson-datatype-jsr310")
implementation("$base.core:jackson-annotations")
implementation("$base.core:jackson-databind")
}
implementation("org.apache.commons:commons-lang3")
implementation("com.jayway.jsonpath:json-path")
implementation("com.hazelcast:hazelcast")
implementation("com.hazelcast:hazelcast-spring")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.springframework.cloud:spring-cloud-stream-reactive")
implementation("org.springframework.cloud:spring-cloud-stream-binder-rabbit")
implementation("org.springframework.retry:spring-retry")
implementation("org.springframework:spring-context-support")
// Loads sleuth and zipkin
implementation("org.springframework.cloud:spring-cloud-starter-zipkin")
// Only to use for zipkin as we do not have any use for rabbitmq in this project
implementation("org.springframework.boot:spring-boot-starter-amqp")
developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation("javax.inject:javax.inject:${Version.JAVAX}")
implementation("io.jsonwebtoken:jjwt:${Version.JJWT}")
implementation("net.logstash.logback:logstash-logback-encoder:${Version.LOGSTASH}")
implementation("com.github.mongobee:mongobee:${Version.MONGOBEE}")
implementation("org.simpleflatmapper:sfm-csv:${Version.CSV}")
implementation("org.mapstruct:mapstruct-jdk8:${Version.MAPSTRUCT}")
kapt("org.mapstruct:mapstruct-processor:${Version.MAPSTRUCT}")
testImplementation("info.cukes:cucumber-junit:${Version.CUCUMBER}")
testImplementation("info.cukes:cucumber-spring:${Version.CUCUMBER}")
testImplementation("com.github.fridujo:rabbitmq-mock:${Version.RABBITMQ_MOCK}")
testImplementation("org.assertj:assertj-core")
testImplementation("io.projectreactor:reactor-test")
testImplementation("de.flapdoodle.embed:de.flapdoodle.embed.mongo")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("org.springframework.cloud:spring-cloud-stream-test-support")
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
languageVersion = "1.3"
}
}