-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
94 lines (79 loc) · 3.32 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.5.2"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("com.arenagod.gradle.MybatisGenerator") version "1.4"
id("com.github.ben-manes.versions") version "0.39.0"
kotlin("jvm") version "1.5.20"
kotlin("plugin.spring") version "1.5.20"
}
allprojects {
group = "com.book.manager"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
apply(plugin = "kotlin")
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.junit.jupiter:junit-jupiter:5.7.2")
testImplementation("org.assertj:assertj-core:3.20.2")
testImplementation("org.mockito:mockito-core:3.11.2")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
}
configure(listOf(project("presentation"))) {
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
apply(plugin = "org.springframework.boot")
apply(plugin = "io.spring.dependency-management")
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.springframework.session:spring-session-data-redis")
implementation("redis.clients:jedis")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3")
testImplementation("org.springframework.security:spring-security-test")
runtimeOnly(project(":infrastructure"))
implementation(project(":application"))
implementation(project(":domain"))
}
}
configure(listOf(project("infrastructure"))) {
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
apply(plugin = "com.arenagod.gradle.MybatisGenerator")
dependencies {
implementation("org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0")
implementation("org.mybatis.dynamic-sql:mybatis-dynamic-sql:1.2.1")
implementation("mysql:mysql-connector-java:8.0.25")
mybatisGenerator("org.mybatis.generator:mybatis-generator-core:1.4.0")
implementation(project(":domain"))
}
mybatisGenerator {
verbose = true
configFile = "${projectDir}/src/main/resources/generatorConfig.xml"
}
}
configure(listOf(project("application"))) {
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
dependencies {
implementation("org.springframework.security:spring-security-core:5.5.1")
implementation("org.springframework:spring-tx:5.3.8")
implementation(project(":domain"))
}
}