-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
98 lines (79 loc) · 3.2 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.useIR = true
plugins {
id("org.springframework.boot") version "2.5.4"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
kotlin("jvm") version "1.4.31"
kotlin("plugin.spring") version "1.4.31"
kotlin("plugin.allopen") version "1.4.31"
kotlin("plugin.noarg") version "1.4.31"
kotlin("plugin.serialization") version "1.4.31"
}
group = "com.jetbrains"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:2.5.4")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.12.5")
implementation("org.springframework.boot:spring-boot-starter-security:2.5.4")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("io.jsonwebtoken:jjwt:0.9.1")
implementation("io.jsonwebtoken:jjwt-api:0.11.2")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.5")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.2")
implementation("org.junit.jupiter:junit-jupiter:5.8.0")
developmentOnly("org.springframework.boot:spring-boot-devtools:2.5.4")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
testImplementation("org.springframework.boot:spring-boot-starter-test:2.5.5")
testImplementation("org.springframework.security:spring-security-test:5.5.1")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
testImplementation("com.h2database:h2:1.4.200")
implementation("org.springdoc:springdoc-openapi-webmvc-core:1.5.10")
implementation("org.springdoc:springdoc-openapi-ui:1.5.10")
implementation("org.springframework.boot:spring-boot-starter-data-jpa:2.5.4")
implementation(group = "org.springframework.data", name = "spring-data-elasticsearch", version = "4.1.7")
implementation(group = "org.springframework.boot", name = "spring-boot-starter-validation")
implementation(group = "org.postgresql", name = "postgresql")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
allOpen {
annotation("javax.persistence.Entity")
annotation("javax.persistence.Embeddable")
annotation("javax.persistence.MappedSuperclass")
}
noArg {
annotation("javax.persistence.Entity")
annotation("javax.persistence.Embeddable")
annotation("javax.persistence.MappedSuperclass")
}
ktlint {
disabledRules.add("import-ordering")
disabledRules.add("no-wildcard-imports")
verbose.set(true)
outputToConsole.set(true)
coloredOutput.set(true)
reporters {
reporter(ReporterType.CHECKSTYLE)
}
filter {
exclude("**/test/**")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
compileKotlin.kotlinOptions {
freeCompilerArgs = listOf("-Xinline-classes")
}