forked from gothinkster/spring-boot-realworld-example-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
100 lines (84 loc) · 3.22 KB
/
build.gradle
File metadata and controls
100 lines (84 loc) · 3.22 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
93
94
95
96
97
98
99
100
plugins {
id 'org.springframework.boot' version '2.6.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "com.netflix.dgs.codegen" version "5.0.6"
id "org.sonarqube" version "5.0.0.4638"
id "jacoco"
id "org.owasp.dependencycheck" version '8.2.1'
id "org.cyclonedx.bom" version '1.7.4'
id "org.openrewrite.rewrite" version "6.11.2"
}
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
targetCompatibility = '11'
repositories {
mavenCentral()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
test {
finalizedBy jacocoTestReport
}
dependencyCheck {
formats = ['HTML', 'JSON']
outputDirectory = "$buildDir/reports/owasp-dependencyCheck"
}
cyclonedxBom {
destination = file("build/reports/sbom")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
implementation 'com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter:4.9.21'
implementation 'org.flywaydb:flyway-core'
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.2',
'io.jsonwebtoken:jjwt-jackson:0.11.2'
implementation 'joda-time:joda-time:2.10.13'
implementation 'org.xerial:sqlite-jdbc:3.36.0.3'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'io.rest-assured:rest-assured:4.5.1'
testImplementation 'io.rest-assured:json-path:4.5.1'
testImplementation 'io.rest-assured:xml-path:4.5.1'
testImplementation 'io.rest-assured:spring-mock-mvc:4.5.1'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:2.2.2'
rewrite("org.openrewrite.recipe:rewrite-spring:5.8.0")
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.named('clean') {
doFirst {
delete './dev.db'
}
}
tasks.named('generateJava') {
schemaPaths = ["${projectDir}/src/main/resources/schema"] // List of directories containing schema files
packageName = 'io.spring.graphql' // The package name to use to generate sources
}
sonar {
properties {
property "sonar.projectKey", "Workshop-dette-technique"
property "sonar.organization", "Workshop-dette-technique"
property "sonar.host.url", "http://localhost:9000"
property "sonar.token", "sqp_1af36f647da2f89630dcb0c7a25baf13b17e1a34"
property "sonar.dependencyCheck.htmlReportPath", "${buildDir}/reports/owasp-dependencyCheck/dependency-check-report.html"
property "sonar.dependencyCheck.jsonReportPath", "${buildDir}/reports/owasp-dependencyCheck/dependency-check-report.json"
property "sonar.coverage.exclusions", "src/main/java/io/spring/graphql/**/*"
}
}