-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
107 lines (94 loc) · 2.98 KB
/
build.gradle
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
99
100
101
102
103
104
105
106
107
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.0'
id 'io.spring.dependency-management' version '1.1.6'
id 'checkstyle'
id 'com.github.ben-manes.versions' version '0.51.0'
id 'org.sonarqube' version '6.0.0.5145'
id 'com.adarshr.test-logger' version '4.0.0'
id 'jacoco'
id 'idea'
id 'info.solidsoft.pitest' version '1.15.0'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
group = 'com.ditrit'
version = '1.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.session:spring-session-jdbc:3.4.0'
implementation 'org.flywaydb:flyway-core:11.0.0'
implementation 'org.flywaydb:flyway-database-postgresql:11.0.0'
implementation 'commons-lang:commons-lang:2.6'
implementation 'commons-beanutils:commons-beanutils:1.9.4'
implementation 'com.github.erosb:json-sKema:0.19.0'
implementation 'com.hubspot.jinjava:jinjava:2.7.3'
implementation 'io.github.zorin95670:spring-query-filter:1.1.3'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'org.postgresql:postgresql:42.7.4'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.cucumber:cucumber-java:7.20.1'
testImplementation 'io.cucumber:cucumber-junit:7.20.1'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.11.3'
}
tasks.named('test') {
useJUnitPlatform()
systemProperty("cucumber.junit-platform.naming-strategy", "long")
finalizedBy jacocoTestReport
}
checkstyle {
toolVersion = '10.20.1'
configFile = file("${project.rootDir}/checkstyle.xml")
sourceSets = [sourceSets.main]
}
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
jacoco {
toolVersion = "0.8.11"
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
sonar {
properties {
property "sonar.projectKey", "ditrit_leto-modelizer-api"
property "sonar.organization", "ditrit"
property "sonar.projectName", "leto-modelizer-api"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.pitest.reportsDirectory", "build/reports/pitest"
}
}
pitest {
junit5PluginVersion = '1.2.1'
pitestVersion = '1.15.2'
excludedTestClasses = ['com.ditrit.letomodelizerapi.cucumber.RunCucumberTest', 'com.ditrit.letomodelizerapi.cucumber.StepDefinitions']
}