-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
182 lines (157 loc) · 6.03 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
id 'com.adarshr.test-logger' version '4.0.0'
id 'jacoco'
id "org.openapi.generator" version "7.2.0"
}
group = 'edu.stanford.slac'
version = '1.0.0'
ext {
ad_eed_baselib_version = "0.1.87"
ad_eed_base_mongodb_lib_version = "1.0.9"
javaSourceCompatibility = JavaVersion.VERSION_21
javaTargetCompatibility = JavaVersion.VERSION_21
}
java {
sourceCompatibility = javaSourceCompatibility
targetCompatibility = javaTargetCompatibility
}
springBoot {
buildInfo {
{
properties {
additional = [
'ad-eed-baselib' : "${project.ext.ad_eed_baselib_version}",
'ad-eed-base-mongodb': "${project.ext.ad_eed_base_mongodb_lib_version}"
]
}
}
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/eed-web-application/slac-ad-eed-baselib")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GH_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GH_TOKEN")
}
}
maven {
url = uri("https://maven.pkg.github.com/eed-web-application/slac-ad-eed-base-mongodb-lib")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GH_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GH_TOKEN")
}
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-security',
'org.springframework.boot:spring-boot-starter-actuator',
'org.springframework.boot:spring-boot-starter-data-ldap',
'org.springframework.boot:spring-boot-starter-cache',
'org.springframework.boot:spring-boot-starter-validation',
'org.springframework.boot:spring-boot-starter-mail',
'org.springframework.boot:spring-boot-starter-thymeleaf',
'org.springframework.boot:spring-boot-starter-aop',
'io.micrometer:micrometer-registry-prometheus',
'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0',
'org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0',
'javax.annotation:javax.annotation-api:1.3.2',
'io.swagger.core.v3:swagger-annotations:2.2.22',
'org.mapstruct:mapstruct:1.5.5.Final',
'com.fasterxml.jackson.core:jackson-databind',
'org.springframework.kafka:spring-kafka:3.2.4',
'net.coobird:thumbnailator:0.4.20',
'software.amazon.awssdk:s3:2.25.27',
'io.jsonwebtoken:jjwt-root:0.12.5',
'io.jsonwebtoken:jjwt-api:0.12.3',
'io.jsonwebtoken:jjwt-impl:0.12.6',
'io.jsonwebtoken:jjwt-jackson:0.12.5',
'io.jsonwebtoken:jjwt-extensions:0.12.6',
'com.unboundid:unboundid-ldapsdk:7.0.1'
implementation ('com.github.javafaker:javafaker:1.0.2') { exclude module: 'snakeyaml' }
implementation 'org.yaml:snakeyaml:2.2'
// jipp for IPP printer
implementation 'com.hp.jipp:jipp-core:0.7.16'
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.2'
implementation 'org.apache.pdfbox:pdfbox:3.0.3'
// tika
implementation 'org.overviewproject:mime-types:2.0.0'
implementation 'org.apache.tika:tika-core:2.9.2'
implementation 'org.apache.tika:tika-parsers-standard-package:2.9.2'
//ollama
implementation 'io.github.ollama4j:ollama4j:1.0.79'
//eed library
implementation "edu.stanford.slac:slac-ad-eed-baselib:$project.ext.ad_eed_baselib_version",
"edu.stanford.slac:slac-ad-eed-base-mongodb-lib:$project.ext.ad_eed_base_mongodb_lib_version"
// hazelcast
implementation 'com.hazelcast:hazelcast-spring:5.3.6'
// MongoDB
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
// JSOUP
implementation 'org.jsoup:jsoup:1.18.1'
// mongock
implementation 'io.mongock:mongock-bom:5.4.4',
'io.mongock:mongock-springboot-v3:5.4.1',
'io.mongock:mongodb-springdata-v4-driver:5.4.4'
testImplementation 'org.projectlombok:lombok:1.18.34'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.0'
testCompileOnly('org.springframework.security:spring-security-test')
testImplementation('org.springframework.kafka:spring-kafka-test:3.2.0')
testImplementation 'org.springframework.boot:spring-boot-starter-test',
'org.springframework.security:spring-security-test',
'org.springframework.ldap:spring-ldap-test',
'org.awaitility:awaitility:4.2.1',
'org.apache.pdfbox:pdfbox:3.0.3',
'com.icegreen:greenmail-spring:2.0.1'
}
tasks.named('test') {
useJUnitPlatform()
}
jacoco {
reportsDirectory = layout.buildDirectory.dir('coverage')
}
test {
// Optionally, set environment variables if needed
// systemProperty 'java.library.path', '/path/to/jmagick/lib'
finalizedBy jacocoTestReport // report is always generated after tests run
exclude '**/dto/**'
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = true
csv.required = true
html.required = true
}
}
testlogger {
theme 'standard'
showExceptions true
showStackTraces true
showFullStackTraces true
showCauses true
slowThreshold 2000
showSummary true
showSimpleNames false
showPassed true
showSkipped true
showFailed true
showOnlySlow false
// showStandardStreams true
showPassedStandardStreams false
showSkippedStandardStreams false
showFailedStandardStreams true
logLevel 'lifecycle'
}