-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (67 loc) · 3.03 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
plugins {
// https://plugins.gradle.org/plugin/org.springframework.boot
id 'org.springframework.boot' version '2.4.0'
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.jvm
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.plugin.spring
id 'org.jetbrains.kotlin.plugin.spring' version '1.4.10'
// https://plugins.gradle.org/plugin/io.spring.dependency-management
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
// https://plugins.gradle.org/plugin/org.jlleitschuh.gradle.ktlint
id 'org.jlleitschuh.gradle.ktlint' version '9.4.0'
id 'java'
id 'idea'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java.sourceCompatibility = JavaVersion.VERSION_11
compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=warn']
jvmTarget = '11'
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=warn']
jvmTarget = '11'
}
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
// https://github.com/FasterXML/jackson-module-kotlin
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.11.+'
// // https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit
// implementation 'com.squareup.retrofit2:retrofit:2.9.0'
// // https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-jackson
// implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
// https://mvnrepository.com/artifact/net.logstash.logback/logstash-logback-encoder
implementation 'net.logstash.logback:logstash-logback-encoder:6.4'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
exclude module: 'spring-boot-starter-logging'
}
// https://mvnrepository.com/artifact/com.nhaarman.mockitokotlin2/mockito-kotlin
testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.+'
// https://github.com/willowtreeapps/assertk
// https://mvnrepository.com/artifact/com.willowtreeapps.assertk/assertk-jvm
testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.23'
// https://mvnrepository.com/artifact/org.skyscreamer/jsonassert
testImplementation 'org.skyscreamer:jsonassert:1.5.+'
// https://mvnrepository.com/artifact/org.mock-server/mockserver-netty
testImplementation 'org.mock-server:mockserver-netty:5.11.+'
// https://mvnrepository.com/artifact/org.mock-server/mockserver-junit-jupiter
testImplementation 'org.mock-server:mockserver-junit-jupiter:5.11.+'
}