-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
78 lines (66 loc) · 2.3 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("org.jlleitschuh.gradle:ktlint-gradle:8.0.0")
}
}
plugins {
id("org.springframework.boot")
id("org.jetbrains.kotlin.jvm")
id("org.jetbrains.kotlin.plugin.spring")
id("org.jetbrains.kotlin.plugin.jpa")
id("io.spring.dependency-management")
id("jacoco")
id("org.jlleitschuh.gradle.ktlint") version "8.0.0"
id("org.flywaydb.flyway")
// id("org.jlleitschuh.gradle.ktlint")// version "10.2.0"
}
version = "1.0.0"
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
val test by tasks.getting(Test::class) {
useJUnitPlatform()
maxHeapSize = "3g"
}
jacoco {
toolVersion = "0.8.2"
}
val jacocoTestReport by tasks.getting(JacocoReport::class) {
reports {
xml.isEnabled = true
html.isEnabled = true
}
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springframework.boot:spring-boot-starter")
val graphqlSpringVersion: String by project
implementation("com.graphql-java-kickstart:graphql-spring-boot-starter:$graphqlSpringVersion")
implementation("com.graphql-java-kickstart:graphiql-spring-boot-starter:$graphqlSpringVersion")
implementation("com.graphql-java-kickstart:altair-spring-boot-starter:$graphqlSpringVersion")
implementation("com.graphql-java-kickstart:graphql-java-tools:5.5.1")
// データベース
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.flywaydb:flyway-core")
runtime("org.postgresql:postgresql")
// test
val junitVersion: String by project
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntime("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.assertj:assertj-core:3.11.1")
testImplementation("io.mockk:mockk:1.8.9.kotlin13")
testImplementation("com.ninja-squad:DbSetup-kotlin:2.1.0")
}