This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
/
build.gradle.kts
59 lines (51 loc) · 1.67 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
dependencies {
classpath("org.postgresql:postgresql:42.2.18")
}
repositories {
mavenCentral()
jcenter()
}
}
plugins {
java
kotlin("jvm") version "1.4.21-2"
kotlin("plugin.spring") version "1.4.21-2"
id("io.gitlab.arturbosch.detekt") version "1.15.0"
id("org.springframework.boot") version "2.4.2"
id("com.github.jk1.dependency-license-report") version "1.16"
id("org.sonarqube") version "3.1"
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
runtimeOnly("org.postgresql:postgresql")
implementation("net.logstash.logback:logstash-logback-encoder:6.6")
implementation("io.micrometer:micrometer-registry-elastic:1.6.3")
implementation("org.postgresql:postgresql:42.2.18")
implementation(platform("org.springframework.boot:spring-boot-dependencies:2.4.2"))
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("javax.validation:validation-api:2.0.1.Final")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.4.21-2")
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
testImplementation("org.assertj:assertj-core:3.19.0")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}