-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
89 lines (74 loc) · 2.67 KB
/
build.gradle.kts
File metadata and controls
89 lines (74 loc) · 2.67 KB
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
plugins {
java
jacoco
checkstyle
id("org.springframework.boot") version "3.1.5"
id("io.spring.dependency-management") version "1.1.3"
id("io.sentry.jvm.gradle") version "3.14.0"
}
group = "hexlet.code"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_20
}
jacoco {
toolVersion = "0.8.9"
reportsDirectory = layout.buildDirectory.dir("reports/jacoco")
}
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter:3.1.0")
implementation("org.springframework.boot:spring-boot-starter-web:3.1.0")
implementation("org.springframework.boot:spring-boot-devtools:3.0.4")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0")
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
implementation("org.mapstruct:mapstruct:1.5.5.Final")
annotationProcessor("org.mapstruct:mapstruct-processor:1.5.5.Final")
implementation("org.openapitools:jackson-databind-nullable:0.2.6")
implementation("org.springframework.boot:spring-boot-starter-data-jpa:3.0.4")
implementation("org.springframework.boot:spring-boot-starter-validation:3.1.5")
runtimeOnly("com.h2database:h2:2.1.214")
implementation("org.springframework.boot:spring-boot-configuration-processor:3.1.2")
implementation("org.springframework.boot:spring-boot-starter-security:3.0.4")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server:3.1.0")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
testImplementation("org.springframework.boot:spring-boot-starter-test:3.1.0")
testImplementation("org.springframework.security:spring-security-test:6.0.2")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:3.2.2")
implementation("net.datafaker:datafaker:2.0.1")
implementation("org.instancio:instancio-junit:3.3.0")
testCompileOnly("org.projectlombok:lombok:1.18.30")
testAnnotationProcessor("org.projectlombok:lombok:1.18.30")
}
tasks.test {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required = true
csv.required = false
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
}
}
buildscript {
repositories {
mavenCentral()
}
}
val env = System.getenv("APP_ENV")
sentry {
if (env != null && env.contentEquals("prod")) {
includeSourceContext = true
org = "anastasiya-trusova"
projectName = "java-spring-boot"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
}
}