This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle.kts
80 lines (72 loc) · 2.49 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
plugins {
id("java")
id("com.diffplug.eclipse.apt") version "3.40.0"
id("com.diffplug.spotless") version "6.12.0"
id("org.springframework.boot") version "2.7.6"
id("org.domaframework.doma.compile") version "2.0.0"
}
apply(plugin = "io.spring.dependency-management")
spotless {
java {
googleJavaFormat("1.7")
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
springBoot {
mainClass.set("sample.Application")
}
repositories {
mavenCentral()
mavenLocal()
maven(url = "https://repo.spring.io/milestone")
}
dependencies {
val domaVersion: String by project
val domaSpringBootVersion: String by project
annotationProcessor("org.seasar.doma:doma-processor:${domaVersion}")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.seasar.doma:doma-core:${domaVersion}")
implementation("org.seasar.doma:doma-slf4j:${domaVersion}")
implementation("org.seasar.doma.boot:doma-spring-boot-starter:${domaSpringBootVersion}")
implementation("com.h2database:h2:2.1.214")
implementation("org.webjars:jquery:3.6.1")
implementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.1.0")
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}
eclipse {
classpath {
file {
whenMerged {
val classpath = this as org.gradle.plugins.ide.eclipse.model.Classpath
classpath.entries.removeAll {
when (it) {
is org.gradle.plugins.ide.eclipse.model.Output -> it.path == ".apt_generated"
else -> false
}
}
}
withXml {
val node = asNode()
node.appendNode("classpathentry", mapOf("kind" to "src", "output" to "bin/main", "path" to ".apt_generated"))
}
}
}
jdt {
javaRuntimeName = "JavaSE-11"
}
}
tasks {
test {
useJUnitPlatform()
}
}