-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (77 loc) · 2.48 KB
/
Copy pathbuild.gradle
File metadata and controls
92 lines (77 loc) · 2.48 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
90
91
92
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
id 'jacoco'
id 'org.sonarqube' version '5.1.0.4882'
}
group = 'pb.studyconnect'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
sonar {
properties {
property "sonar.projectKey", "pb.studyconnect:StudyConnectMaster"
property "sonar.projectName", "StudyConnectMaster"
}
}
sourceSets {
itest {
java {
}
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.mapstruct:mapstruct:1.6.2'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
implementation 'jakarta.validation:jakarta.validation-api:3.1.0'
implementation 'org.springframework.boot:spring-boot-starter-validation:3.3.3'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.2'
itestImplementation 'io.rest-assured:rest-assured:5.5.0'
itestImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
itestRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.assertj:assertj-core:3.26.3'
//testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
jar {
enabled = false
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
check.dependsOn jacocoTestCoverageVerification
tasks.register('itest', Test) {
testClassesDirs = sourceSets.itest.output.classesDirs
classpath = sourceSets.itest.runtimeClasspath
systemProperties(System.getProperties())
useJUnitPlatform()
}
tasks.register('itestJar', Jar) {
dependsOn(compileJava)
dependsOn(processResources)
from {
sourceSets.itest.runtimeClasspath.filter { it.name != 'main' }.collect { it.isDirectory() ? it : zipTree(it) }
}
archiveBaseName = 'itestJar'
from sourceSets.itest.output
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
jacocoTestReport {
reports {
xml.required = true
}
}