-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
139 lines (118 loc) · 4.39 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.24.16')
}
}
plugins {
id "io.spring.dependency-management" version "1.1.0"
id "org.springframework.boot" version "3.0.2"
id "org.sonarqube" version "3.3"
id "jacoco"
id "org.owasp.dependencycheck" version "7.4.4"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
id "com.github.ben-manes.versions" version "0.39.0"
}
apply plugin: "java"
apply plugin: 'io.spring.dependency-management'
apply plugin: "idea"
apply plugin: "com.jfrog.artifactory"
artifactoryPublish.skip = true
archivesBaseName = 'yti-datamodel-api'
repositories {
mavenLocal()
mavenCentral {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
google {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
jcenter {
content { excludeGroupByRegex "fi\\.vm\\.yti.*" }
}
// put your artifactory parameters to $HOME/.gradle/gradle.properties
if (project.hasProperty('artifactoryUrl')) {
maven {
url "$artifactoryUrl"
credentials {
username "$artifactoryUsername"
password "$artifactoryPassword"
}
}
}
}
sourceCompatibility = 17
targetCompatibility = 17
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2022.0.0'
}
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.security:spring-security-core"
implementation "org.springframework.boot:spring-boot-starter-tomcat"
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation "org.springframework.security:spring-security-config"
implementation "org.springframework.security:spring-security-web"
implementation "org.springframework.boot:spring-boot-starter-webflux"
implementation "fi.vm.yti:yti-spring-security:0.4.0"
implementation "fi.vm.yti:yti-spring-migration:0.2.0"
implementation "org.springframework.cloud:spring-cloud-starter-config"
implementation "ch.qos.logback:logback-core"
implementation "net.logstash.logback:logstash-logback-encoder:7.2"
implementation "jakarta.validation:jakarta.validation-api:3.0.2"
implementation "org.opensearch.client:opensearch-java:2.2.0"
implementation "org.opensearch.client:opensearch-rest-client:2.3.0"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2"
implementation "org.topbraid:shacl:1.4.2"
implementation "org.apache.jena:jena-core:4.6.1"
implementation "org.apache.jena:jena-arq:4.6.1"
implementation "org.apache.jena:jena-rdfconnection:4.6.1"
implementation "org.apache.jena:jena-querybuilder:4.6.1"
implementation "com.google.guava:guava:31.1-jre"
// library for programmatically generating json schema
// NOTE: the project is in maintenance mode
implementation "com.github.erosb:everit-json-schema:1.14.4"
compileOnly "org.springframework.boot:spring-boot-configuration-processor"
compileOnly "org.jetbrains:annotations:23.0.0"
implementation(platform("software.amazon.awssdk:bom:2.25.50"))
implementation("software.amazon.awssdk:sns")
implementation("software.amazon.awssdk:sts")
implementation("software.amazon.awssdk:sso")
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "com.jayway.jsonpath:json-path-assert:2.7.0"
testImplementation "org.mockito:mockito-core:4.8.0"
testImplementation "net.bytebuddy:byte-buddy:1.12.22"
}
sonarqube {
properties {
property "sonar.projectKey", "yti-datamodel-api"
property "sonar.projectName", "yti-datamodel-api"
property("sonar.dependencyCheck.reportPath", "$buildDir/reports/dependency-check-report.xml")
property("sonar.dependencyCheck.htmlReportPath", "$buildDir/reports/dependency-check-report.html")
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
test {
useJUnitPlatform()
}
dependencyCheck {
format = 'ALL'
autoUpdate = false
analyzers {
centralEnabled = false
}
data {
directory = System.getenv('OWASP_DATA_DIR')
}
}