-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
90 lines (72 loc) · 2.52 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.9.20"
id("org.springframework.boot") version "3.2.0"
id("io.spring.dependency-management") version "1.1.4"
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion
kotlin("plugin.noarg") version kotlinVersion
kotlin("kapt") version kotlinVersion
}
allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
}
noArg {
annotation("jakarta.persistence.Entity")
}
group = "mara"
version = "0.0.1-SNAPSHOT"
val queryDslVersion = "5.0.0"
java {
sourceCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
// Swagger
// implementation("io.springfox:springfox-boot-starter:3.0.0")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
// security
implementation("org.springframework.boot:spring-boot-starter-security:3.2.0")
// jwt
implementation("io.jsonwebtoken:jjwt-api:0.11.2")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.11.2")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.11.2")
// queryDsl
implementation("com.querydsl:querydsl-jpa:$queryDslVersion:jakarta")
kapt("com.querydsl:querydsl-apt:$queryDslVersion:jakarta")
// test
testImplementation("org.springframework.boot:spring-boot-starter-test")
runtimeOnly("com.h2database:h2:2.1.214")
// db
runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
// redis
implementation("org.springframework.data:spring-data-redis:3.1.2")
implementation("io.lettuce:lettuce-core:6.2.5.RELEASE")
// s3
implementation("org.springframework.cloud:spring-cloud-starter-aws:2.0.1.RELEASE")
implementation("javax.xml.bind:jaxb-api:2.3.1")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
springBoot.buildInfo { properties { } }
tasks.getByName<Jar>("jar") {
enabled = false
}