-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (63 loc) · 2.28 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
plugins {
id("java")
id("org.springframework.boot").version("3.3.3")
id("io.spring.dependency-management").version("1.1.6")
kotlin("jvm")
`cookies-get-version`
}
group = "dev.morazzer.cookies"
version = "0.0.5"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
configurations.compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
repositories {
mavenCentral()
maven("https://maven.pkg.github.com/cookies-mod/entities") {
credentials {
username = project.findProperty("gpr.usr") as String? ?: System.getenv("USER")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
dependencies {
// Database
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
runtimeOnly("com.h2database:h2")
runtimeOnly("org.postgresql:postgresql")
// Redis cache
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.springframework.boot:spring-boot-starter-data-redis-reactive")
// web + auth
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
implementation("org.springframework.boot:spring-boot-starter-security")
// jwt and json
implementation("com.google.code.gson:gson:2.11.0")
implementation("io.jsonwebtoken:jjwt:0.12.6")
// Websocket
implementation("org.springframework.boot:spring-boot-starter-websocket")
// Messaging between server instances
implementation("org.springframework.security:spring-security-messaging")
implementation("org.springframework.boot:spring-boot-starter-amqp")
// Communication with client
implementation("dev.morazzer.cookies:entities:0.2.0")
// Lombok (not much to say)
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
//Test dependencies
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
implementation(kotlin("stdlib-jdk8"))
}
tasks.test {
useJUnitPlatform()
}
springBoot {
buildInfo()
}