Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
126 lines (110 loc) · 4.65 KB
/
Copy pathbuild.gradle
File metadata and controls
126 lines (110 loc) · 4.65 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
plugins {
id 'org.springframework.boot' version '4.0.1'
id 'io.spring.dependency-management' version '1.1.7'
id 'org.jetbrains.kotlin.jvm' version '2.3.0'
id 'org.jetbrains.kotlin.plugin.spring' version '2.3.0'
id 'org.jetbrains.kotlin.plugin.jpa' version '2.3.0'
id 'org.hibernate.orm' version '7.2.0.Final'
id 'org.antora' version '1.0.0'
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
id 'nebula.lint' version '21.1.3'
id 'com.diffplug.spotless' version '8.1.0'
id 'com.gorylenko.gradle-git-properties' version '2.5.4'
id 'com.github.ben-manes.versions' version '0.53.0'
id 'com.google.devtools.ksp' version '2.3.5'
}
group = 'org.advancedchat'
version = '0.0.1-SNAPSHOT'
description = 'advanced-chat-server'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
set('flyway.version', '11.20.1')
set('konvert.version', '4.4.0')
set('spring-modulith.version', '2.0.1')
set('redisson.version', '4.1.0')
}
dependencyManagement {
imports {
mavenBom "org.springframework.modulith:spring-modulith-bom:${property('spring-modulith.version')}"
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll '-Xjsr305=strict'
}
}
allOpen {
annotation 'jakarta.persistence.Entity'
annotation 'jakarta.persistence.MappedSuperclass'
annotation 'jakarta.persistence.Embeddable'
}
spotless {
java {
googleJavaFormat()
removeUnusedImports()
importOrder 'java', 'javax', 'jakarta', 'org', 'com', 'org.advancedchat'
}
kotlin {
ktfmt()
}
}
gitProperties {
keys = ['git.branch', 'git.commit.id', 'git.commit.time']
dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ"
dateFormatTimeZone = 'UTC'
}
springBoot {
buildInfo()
}
test {
useJUnitPlatform()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-batch'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-graphql'
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
implementation 'org.springframework.boot:spring-boot-starter-json'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.springframework.modulith:spring-modulith-moments'
implementation 'org.springframework.modulith:spring-modulith-starter-core'
implementation 'org.springframework.modulith:spring-modulith-starter-jpa'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation 'io.projectreactor.kotlin:reactor-kotlin-extensions'
implementation "io.mcarle:konvert-api:${property('konvert.version')}"
implementation "org.redisson:redisson-spring-boot-starter:${property('redisson.version')}"
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
ksp "io.mcarle:konvert:${property('konvert.version')}"
runtimeOnly 'org.springframework.modulith:spring-modulith-actuator'
runtimeOnly 'org.springframework.modulith:spring-modulith-observability'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
runtimeOnly 'org.springframework.boot:spring-boot-docker-compose'
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'org.flywaydb:flyway-core'
runtimeOnly 'org.flywaydb:flyway-database-postgresql'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.batch:spring-batch-test'
testImplementation 'org.springframework.graphql:spring-graphql-test'
testImplementation 'org.springframework.modulith:spring-modulith-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-webtestclient'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit5'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test'
testImplementation 'io.projectreactor:reactor-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}