-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
114 lines (94 loc) · 3.69 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
113
114
plugins {
java
id("org.springframework.boot") version "3.2.0"
id("io.spring.dependency-management") version "1.1.4"
id("org.hibernate.orm") version "6.3.1.Final"
id("org.graalvm.buildtools.native") version "0.9.28"
id("org.asciidoctor.jvm.convert") version "3.3.2"
}
group = "heig.bdr"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_17
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
extra["snippetsDir"] = file("build/generated-snippets")
dependencies {
// dev utils
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.springframework.boot:spring-boot-starter-actuator")
developmentOnly("org.springframework.boot:spring-boot-devtools")
compileOnly("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
// database
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.hibernate.orm:hibernate-spatial")
testImplementation("org.hibernate.orm:hibernate-ant")
runtimeOnly("org.postgresql:postgresql")
implementation("org.liquibase:liquibase-core")
implementation("io.hypersistence:hypersistence-utils-hibernate-63:3.7.0")
// geospatial data
implementation("org.n52.jackson:jackson-datatype-jts:1.2.10")
implementation("org.locationtech.jts:jts-core:1.19.0")
implementation("org.geolatte:geolatte-geom:1.9.1")
implementation("org.geolatte:geolatte-geojson:1.9.1")
// API
// implementation("org.springframework.boot:spring-boot-starter-data-rest")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-web")
// ViewModel Mapping
implementation("org.mapstruct:mapstruct:1.5.5.Final")
implementation("org.mapstruct.extensions.spring:mapstruct-spring-annotations:1.1.1")
annotationProcessor("org.mapstruct:mapstruct-processor:1.5.5.Final")
annotationProcessor("org.mapstruct.extensions.spring:mapstruct-spring-extensions:1.1.1")
// OpenAPI
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0")
// Batches
implementation("org.springframework.boot:spring-boot-starter-batch")
// Security
implementation("org.bouncycastle:bcprov-jdk18on:1.77")
implementation("io.jsonwebtoken:jjwt-api:0.12.3")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.3")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.12.3")
// utils
implementation("org.apache.commons:commons-lang3:3.14.0")
implementation("org.apache.commons:commons-rng-core:1.5")
// testing
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
testImplementation("org.springframework.security:spring-security-test")
}
tasks {
withType<Test> {
useJUnitPlatform()
}
test {
project.property("snippetsDir")!!.let { outputs.dir(it) }
}
asciidoctor {
project.property("snippetsDir")!!.let { inputs.dir(it) }
dependsOn(test)
}
compileJava {
options.compilerArgs.addAll(listOf(
"-Amapstruct.verbose=true",
"-Amapstruct.defaultComponentModel=spring"
))
}
}
hibernate {
enhancement {
enableAssociationManagement.set(true)
}
}