forked from Brain-up/brn
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
126 lines (105 loc) · 3.86 KB
/
build.gradle
File metadata and controls
126 lines (105 loc) · 3.86 KB
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
plugins {
id 'org.springframework.boot'
id 'io.spring.dependency-management'
id "org.jetbrains.kotlin.jvm"
id "org.jetbrains.kotlin.plugin.spring"
id "org.jetbrains.kotlin.plugin.jpa"
id "org.jetbrains.kotlin.plugin.allopen"
id "org.jetbrains.kotlin.kapt"
}
allOpen {
annotation "javax.persistence.Entity"
annotation "javax.persistence.MappedSuperclass"
annotation "javax.persistence.Embeddable"
}
repositories {
jcenter()
}
ext["mockito.version"] = "${mockitoVersion}"
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-batch"
implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.security:spring-security-test"
implementation "org.springframework.boot:spring-boot-devtools"
implementation "org.postgresql:postgresql"
implementation "org.flywaydb:flyway-core:$flywayVersion"
implementation "com.auth0:java-jwt:3.10.1"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-csv"
testImplementation "org.jetbrains.kotlin:kotlin-test:1.3.71"
implementation "org.mapstruct:mapstruct:1.3.1.Final"
implementation "org.apache.logging.log4j:log4j-api-kotlin:1.0.0"
implementation "org.apache.commons:commons-lang3:3.10"
implementation "org.apache.commons:commons-collections4:4.4"
implementation "commons-io:commons-io:2.6"
implementation "io.springfox:springfox-swagger-ui:2.9.2"
implementation "io.springfox:springfox-swagger2:2.9.2"
testRuntimeOnly "com.h2database:h2"
implementation 'com.amazonaws:aws-java-sdk:1.11.754'
implementation 'com.google.cloud:google-cloud-storage:1.106.0'
def spek_version = '2.0.10'
testImplementation 'org.amshove.kluent:kluent:1.60'
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: "junit"
exclude group: "org.mockito"
}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testImplementation "com.nhaarman:mockito-kotlin:1.6.0"
kapt "org.mapstruct:mapstruct-processor:1.3.1.Final"
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
// --- ktlint - kotlin code style plugin ---
configurations {
ktlint
}
dependencies {
ktlint "com.pinterest:ktlint:0.36.0"
}
task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args "-F", "src/**/*.kt"
}
project.task("ktlint", type: JavaExec) {
group = "verification"
description = "Runs ktlint."
main = "com.pinterest.ktlint.Main"
classpath = project.configurations.ktlint
args = [
"--reporter=plain",
"--reporter=checkstyle,output=${project.buildDir}/reports/ktlint/ktlint-checkstyle-report.xml",
"src/**/*.kt"
]
}
project.exec {
commandLine = "git config core.hooksPath .githooks".split(" ")
}
compileKotlin.dependsOn ktlint
test {
useJUnitPlatform { options ->
options.excludeTags "integration-test"
}
}
task integrationTest(type: Test) { task ->
task.useJUnitPlatform { JUnitPlatformOptions options ->
options.includeTags "integration-test"
}
task.shouldRunAfter tasks.test
}