forked from ciyex-org/ciyex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
132 lines (102 loc) · 3.87 KB
/
Copy pathbuild.gradle
File metadata and controls
132 lines (102 loc) · 3.87 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
plugins {
id 'java'
id 'org.springframework.boot' version '4.0.1'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'org.ciyex.ehr'
version = '0.1.5'
java {
/* toolchain {
languageVersion = JavaLanguageVersion.current()
}*/
}
// Fix Spring Boot parameter name resolution
tasks.withType(JavaCompile) {
options.compilerArgs.add('-parameters')
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2025.1.1")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
// Spring Boot core
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.data:spring-data-commons'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// PostgreSQL
runtimeOnly 'org.postgresql:postgresql'
// Flyway
implementation 'org.springframework.boot:spring-boot-starter-flyway'
implementation 'org.flywaydb:flyway-database-postgresql'
// Spring Cloud Config
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-vault-config'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
// FHIR
implementation 'ca.uhn.hapi.fhir:hapi-fhir-base:8.2.1'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-client:8.2.1'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-structures-r4:8.2.1'
// Lombok
implementation 'org.projectlombok:lombok:1.18.38'
annotationProcessor 'org.projectlombok:lombok:1.18.38'
// JSON/Jackson
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
// JWT
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
// PDF
implementation 'org.apache.pdfbox:pdfbox:2.0.30'
implementation 'com.github.librepdf:openpdf:1.3.39'
implementation 'com.openhtmltopdf:openhtmltopdf-pdfbox:1.0.10'
implementation 'com.openhtmltopdf:openhtmltopdf-slf4j:1.0.10'
// Utilities
implementation 'org.bouncycastle:bcprov-jdk18on:1.81'
implementation 'commons-io:commons-io:2.19.0'
implementation 'com.github.ben-manes.caffeine:caffeine:3.2.2'
// External integrations
implementation 'com.azure:azure-ai-openai:1.0.0-beta.16'
implementation 'software.amazon.awssdk:s3:2.32.26'
// Ciyex Platform SDK (telehealth provider interface, common DTOs)
implementation 'org.ciyex:ciyex-platform-sdk:0.1.2'
// Twilio + Telnyx removed — telehealth now delegated to ciyex-telehealth service
// Email (SMTP for feature requests, password reset notifications)
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'com.stripe:stripe-java:24.18.0'
// Testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
bootRun {
def envFile = file("${rootProject.projectDir}/.env")
if (envFile.exists()) {
envFile.readLines().each { line ->
line = line.trim()
if (line && !line.startsWith('#')) {
def idx = line.indexOf('=')
if (idx > 0) {
environment line.substring(0, idx), line.substring(idx + 1)
}
}
}
}
}
tasks.named('test') {
useJUnitPlatform()
}
// Use JUnit Platform for tests (don't set Gradle-specific properties that may not exist
// in older/newer Gradle distributions used in CI Docker builds).