-
Notifications
You must be signed in to change notification settings - Fork 100
/
build.gradle.kts
112 lines (104 loc) · 3.91 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.6.21"
id("org.springframework.boot") version "2.3.3.RELEASE"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
id("com.vaadin") version "0.8.0"
id("org.asciidoctor.jvm.convert") version "3.3.2"
id("org.flywaydb.flyway") version "7.12.0"
}
group = "io.github.woowacourse"
version = "3.0.0-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven {
url = uri("http://maven.vaadin.com/vaadin-addons")
}
}
extra["vaadinVersion"] = "14.3.3"
extra["kotlin-coroutines.version"] = "1.6.0"
val asciidoctorExt: Configuration by configurations.creating
val snippetsDir by extra { "build/generated-snippets" }
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-mail")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("com.vaadin:vaadin-spring-boot-starter")
implementation("org.flywaydb:flyway-core")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.apache.commons:commons-csv:1.5")
implementation("org.apache.poi:poi-ooxml:4.1.2")
implementation("dev.mett.vaadin:tooltip:1.7.0")
implementation("com.amazonaws:aws-java-sdk-ses:1.11.880")
implementation("com.amazonaws:aws-java-sdk-sqs:1.12.+")
implementation("io.github.microutils:kotlin-logging-jvm:3.0.0")
compileOnly("io.jsonwebtoken:jjwt-api:0.11.2")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.11.2")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.11.2")
runtimeOnly("mysql:mysql-connector-java")
runtimeOnly("com.h2database:h2")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
exclude(group = "org.mockito")
}
testImplementation("com.ninja-squad:springmockk:2.0.3")
asciidoctorExt("org.springframework.restdocs:spring-restdocs-asciidoctor")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
testImplementation("io.kotest:kotest-runner-junit5:5.4.2")
testImplementation("io.kotest.extensions:kotest-extensions-spring:1.1.2")
}
dependencyManagement {
imports {
mavenBom("com.vaadin:vaadin-bom:${property("vaadinVersion")}")
}
}
tasks {
withType<Test> {
useJUnitPlatform()
}
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
ktlint {
verbose.set(true)
disabledRules.addAll("import-ordering")
}
flyway {
url = "jdbc:mysql://localhost:53306/apply?characterEncoding=UTF-8&serverTimezone=UTC"
user = "user"
password = "password"
}
test {
useJUnitPlatform()
outputs.dir(snippetsDir)
}
asciidoctor {
inputs.dir(snippetsDir)
configurations("asciidoctorExt")
dependsOn(test)
baseDirFollowsSourceFile()
}
register<Copy>("copyDocs") {
dependsOn(asciidoctor)
from("${asciidoctor.get().outputDir}/index.html")
into("src/main/resources/static/docs")
}
bootJar {
dependsOn(asciidoctor)
from("${asciidoctor.get().outputDir}/index.html") {
into("static/docs")
}
}
}