-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
164 lines (131 loc) · 4.82 KB
/
build.gradle
File metadata and controls
164 lines (131 loc) · 4.82 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
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
id 'jacoco'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
mavenCentral()
}
dependencies {
// Spring Boot
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-security'
// Caching
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'com.github.ben-manes.caffeine:caffeine:3.2.0'
implementation 'org.springframework.data:spring-data-redis'
// Database
runtimeOnly 'com.mysql:mysql-connector-j'
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
// Hibernate Jcache implementation
implementation 'org.hibernate:hibernate-core:6.3.1.Final'
implementation 'org.hibernate:hibernate-jcache:6.3.1.Final'
implementation 'org.ehcache:ehcache:3.10.8'
// OpenCV
implementation 'org.openpnp:opencv:4.7.0-0'
// Drools
implementation 'org.drools:drools-core:8.44.0.Final'
implementation 'org.drools:drools-compiler:8.44.0.Final'
implementation 'org.drools:drools-mvel:8.44.0.Final'
// LMAX Disruptor
implementation 'com.lmax:disruptor:3.4.4'
// Hadoop & Parquet
implementation 'org.apache.hadoop:hadoop-client:3.3.6'
implementation 'org.apache.parquet:parquet-hadoop:1.13.1'
implementation 'org.apache.parquet:parquet-avro:1.13.1'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// MapStruct
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
// spring batch
implementation 'org.springframework.boot:spring-boot-starter-batch'
implementation 'org.springframework.batch:spring-batch-integration'
// spring mail
implementation 'org.springframework.boot:spring-boot-starter-mail'
// json
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
// jwt
implementation 'io.jsonwebtoken:jjwt:0.12.5'
// aws s3
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
// aws athena - replacement for S3 Select which is being discontinued
implementation 'com.amazonaws:aws-java-sdk-athena:1.12.782'
// jsoup
implementation 'org.jsoup:jsoup:1.16.1'
// bucket4j
implementation 'com.bucket4j:bucket4j-core:8.7.0'
// spring ai
implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-SNAPSHOT")
implementation 'org.springframework.ai:spring-ai-openai'
implementation 'org.springframework.ai:spring-ai-openai-spring-boot-starter'
// Testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:mysql'
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.assertj:assertj-core'
// Development Tools
developmentOnly 'org.springframework.boot:spring-boot-devtools'
}
tasks.named('test') {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
html.required = true
}
}
bootJar {
archiveFileName = 'lettuce.jar'
}
// Custom task for database migration
task migrateDatabase(type: JavaExec) {
description = 'Run database migrations'
classpath = sourceSets.main.runtimeClasspath
mainClass = 'org.flywaydb.core.Flyway'
args = ['migrate']
}
// Custom task for Flyway repair
task repairDatabase(type: org.springframework.boot.gradle.tasks.run.BootRun) {
description = 'Repair Flyway schema history table'
mainClass = 'com.example.lettuce.LettuceApplication'
args = ['--spring.flyway.repair=true']
}
// Custom task for performance testing
task performanceTest(type: Test) {
description = 'Run performance tests'
useJUnitPlatform {
includeTags 'performance'
}
}
// Custom task for integration testing
task integrationTest(type: Test) {
description = 'Run integration tests'
useJUnitPlatform {
includeTags 'integration'
}
}