-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (57 loc) · 1.58 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.springframework.boot)
alias(libs.plugins.spring.dependency.management)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.spring)
alias(libs.plugins.kotlin.jpa)
alias(libs.plugins.spotless)
}
group = "com.nagpal.shivam"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
/**
* To allow Hibernate to create inherited proxy classes for lazy fetching
* The support is provided by the plugin.spring and plugin.jpa
*
* Note: Entity classes should have an empty constructor as well
*/
allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
}
dependencies {
implementation(libs.spring.boot.actuator)
implementation(libs.spring.boot.data.jpa)
implementation(libs.spring.boot.web)
implementation(libs.spring.boot.validation)
implementation(libs.spring.boot.security)
implementation(libs.jackson.module.kotlin)
implementation(libs.flyway.core)
implementation(libs.auth0.jwt)
implementation(libs.kotlin.reflect)
developmentOnly(libs.spring.boot.devtools)
runtimeOnly(libs.postgresql)
testImplementation(libs.spring.boot.test)
}
spotless {
kotlin {
ktlint()
endWithNewline()
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}