-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
66 lines (55 loc) · 2.05 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
import org.springframework.boot.gradle.tasks.bundling.BootJar
plugins {
idea
java
id("org.springframework.boot") version Globals.Spring.springBootVersion
id("io.franzbecker.gradle-lombok") version Globals.Gradle.Plugin.lombokVersion
id("com.github.ben-manes.versions") version Globals.Gradle.Plugin.versionsVersion
id("io.spring.dependency-management") version Globals.Gradle.Plugin.dependencyManagementVersion
}
group = Globals.Project.groupId
version = Globals.Project.version
repositories {
mavenCentral()
maven(url = "https://repo.spring.io/milestone")
maven(url = "https://repo.spring.io/snapshot")
}
java {
sourceCompatibility = Globals.javaVersion
targetCompatibility = Globals.javaVersion
}
lombok {
version = Globals.lombokVersion
}
dependencies {
implementation("io.r2dbc:r2dbc-h2:${Globals.R2dbc.r2dbcH2Version}")
implementation("io.r2dbc:r2dbc-spi:${Globals.R2dbc.r2dbcSpiVersion}")
implementation("org.springframework.data:spring-data-r2dbc:${Globals.Spring.springDataR2dbcVersion}")
implementation("org.springframework.fu:spring-fu-jafu:${Globals.Spring.springFuJafuVersion}")
implementation(platform("org.springframework.boot:spring-boot-starter-parent:${Globals.Spring.springBootVersion}"))
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-json")
testImplementation("org.springframework.boot:spring-boot-starter-test")
//annotationProcessor(platform("org.springframework.boot:spring-boot-starter-parent:${Globals.Spring.springBootVersion}"))
annotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
implementation("io.vavr:vavr:${Globals.vavrVersion}")
}
tasks {
withType(Wrapper::class.java) {
gradleVersion = Globals.Gradle.wrapperVersion
distributionType = Wrapper.DistributionType.BIN
}
withType(BootJar::class.java) {
launchScript()
}
named("clean") {
doLast {
delete(
buildDir,
"$projectDir/out"
)
}
}
}
defaultTasks("clean", "build")