This repository has been archived by the owner on Jan 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
152 lines (125 loc) · 4.44 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.3.0.RELEASE")
}
ext {
olaphVersion = "3.0.0-SNAPSHOT"
springBootVersion = "2.3.0.RELEASE"
projectVersion = "1.0.0"
kotlinVersion = "1.4.20"
}
}
plugins {
id("jacoco")
id("idea")
id("io.spring.dependency-management").version("1.0.7.RELEASE")
id("org.sonarqube").version("3.0")
id("org.jetbrains.kotlin.jvm").version("1.4.20")
id("org.jetbrains.kotlin.plugin.spring").version("1.4.20")
id("org.springframework.boot").version("2.3.0.RELEASE")
}
group = "com.kreait.bots.slack"
version = "0.0.1.BUILD-SNAPSHOT"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(15)
}
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
mavenBom("software.amazon.awssdk:bom:2.0.0")
}
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = JavaVersion.VERSION_15.toString()
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = JavaVersion.VERSION_15.toString()
}
}
sonarqube {
properties {
property "sonar.projectName", "Olaph Slack App"
property "sonar.projectKey", "olaph-io_slack-app"
property "sonar.host.url", "https://sonarcloud.io/"
property "sonar.organization", "olaph-io"
property "sonar.login", "f2cc9344b5efa26ca634ecf95805cdd120455967"
property "sonar.jacoco.report.missing.force.zero", "true"
//property "sonar.exclusions", "**/akamai/**"
}
}
jacoco {
toolVersion = "0.8.6"
}
jacocoTestReport {
reports {
xml.enabled true
}
}
tasks.withType(Test) {
systemProperties = System.properties
}
apply plugin: "kotlin-spring"
apply plugin: "org.springframework.boot"
bootRun {
systemProperties System.properties
}
test {
useJUnitPlatform()
}
tasks.register("unitTest", Test) {
useJUnitPlatform {
includeTags "Unit"
}
}
tasks.register("integrationTest", Test) {
useJUnitPlatform {
includeTags "Integration"
}
}
repositories {
mavenCentral()
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
implementation(group: "com.kreait.slack", name: "slack-spring-boot-starter", version: "${olaphVersion}", changing: true)
implementation(group: "com.kreait.slack", name: "slack-spring-api-client", version: "${olaphVersion}", changing: true)
implementation(group: "org.springframework.boot", name: "spring-boot-starter-web")
implementation(group: "org.springframework.boot", name: "spring-boot-starter-data-mongodb")
implementation(group: "org.springframework.boot", name: "spring-boot-starter-actuator")
implementation(group: "com.fasterxml.jackson.module", name: "jackson-module-kotlin")
implementation(group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8")
implementation(group: "org.jetbrains.kotlin", name: "kotlin-reflect")
implementation(group: "org.springframework", name: "spring-jms")
//caching
implementation(group: "org.springframework.boot", name: "spring-boot-starter-cache")
implementation(group: "com.github.ben-manes.caffeine", name: "caffeine")
implementation(group: "org.springframework.cloud", name: "spring-cloud-starter-aws-messaging", version: "2.2.5.RELEASE")
implementation(group: "org.springframework.cloud", name: "spring-cloud-starter-aws", version: "2.2.5.RELEASE")
implementation(group: "io.micrometer", name: "micrometer-registry-cloudwatch")
testImplementation(group: "com.kreait.slack", name: "slack-spring-test-api-client", version: "${olaphVersion}")
testImplementation(group: "com.kreait.slack", name: "slack-jackson-dto-test", version: "${olaphVersion}")
testImplementation(group: "org.springframework.boot", name: "spring-boot-starter-test") {
exclude(group: "junit", module: "junit")
exclude(group: "org.junit.vintage", module: "junit-vintage-engine")
}
testImplementation(group: "io.rest-assured", name: "rest-assured", version: "3.3.0")
testImplementation(group: "com.nhaarman.mockitokotlin2", name: "mockito-kotlin", version: "2.0.0")
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
wrapper {
gradleVersion = "6.7"
}