-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
154 lines (134 loc) · 4.6 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
buildscript {
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'http://repo.jenkins-ci.org/releases/'
allowInsecureProtocol = true}
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.4.1'
}
}
plugins {
id 'java'
id 'application'
id 'eclipse'
id 'jacoco'
}
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
processResources {
from ('CDS-Library') {
into 'CDS-Library'
}
}
bootRun {
if (project.hasProperty('debug')) {
jvmArgs=["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:9016"]
}
}
repositories {
mavenLocal()
maven {
url = uri('https://oss.sonatype.org/content/repositories/snapshots/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}}
dependencies {
developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.webjars:webjars-locator-core'
implementation 'org.webjars:sockjs-client:1.1.2'
implementation 'org.webjars:stomp-websocket:2.3.3-1'
implementation 'org.webjars:bootstrap:5.1.3'
implementation 'org.webjars:jquery:3.1.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
implementation files('lib/RuleUtils.jar')
implementation('org.opencds.cqf:cql-engine:1.3.12.1') {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
implementation (group: 'org.opencds.cqf', name: 'cql-engine-fhir', version: '1.3.12.1') {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
implementation 'info.cqframework:cql-to-elm:1.5.5'
implementation 'com.google.guava:guava:31.0.1-jre'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-base:5.6.1'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-structures-dstu3:5.6.1'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-structures-r4:5.6.1'
implementation 'com.h2database:h2:1.4.200'
implementation 'com.auth0:java-jwt:3.18.2'
implementation 'com.auth0:jwks-rsa:0.20.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-starter-webflux'
testImplementation 'org.projectreactor:reactor-spring:1.0.1.RELEASE'
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.squareup.okhttp3:okhttp:4.9.3'
testImplementation 'ca.uhn.hapi.fhir:hapi-fhir-validation:5.5.3'
testImplementation 'ca.uhn.hapi.fhir:hapi-fhir-validation-resources-dstu3:5.6.1'
testImplementation 'ca.uhn.hapi.fhir:hapi-fhir-validation-resources-dstu2:5.6.1'
testImplementation 'ca.uhn.hapi.fhir:hapi-fhir-validation-resources-r4:5.6.1'
testImplementation 'com.helger:ph-schematron:5.6.5'
testImplementation 'com.phloc:phloc-schematron:2.7.1'
testImplementation 'com.phloc:phloc-commons:4.6.7'
}
task embedCdsLibrary() {
doFirst {
exec {
workingDir './'
commandLine 'rm', '-rf', 'CDS-Library'
}
}
doLast {
if (project.hasProperty('branch')) {
cloneCdsLibraryScript(branch)
} else {
cloneCdsLibraryScript('master')
}
}
}
task updateCdsLibrary() {
doLast {
if (project.hasProperty('branch')) {
checkoutCdsLibraryScript(branch)
pullCdsLibraryScript()
} else {
pullCdsLibraryScript()
}
}
}
void cloneCdsLibraryScript(branch) {
println "GIT: clone CDS-Library branch " + branch
exec {
workingDir './'
commandLine 'git', 'clone', 'https://github.com/HL7-DaVinci/CDS-Library.git', 'CDS-Library'
}
checkoutCdsLibraryScript(branch)
}
void pullCdsLibraryScript() {
println "GIT: pull latest CDS-Library"
exec {
workingDir './CDS-Library'
commandLine 'git', 'pull'
}
}
void checkoutCdsLibraryScript(branch) {
println "GIT: checkout CDS-Library branch " + branch
exec {
workingDir './CDS-Library'
commandLine 'git', 'checkout', branch
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
// Define the main class for the application
mainClassName = 'org.hl7.davinci.priorauth.App'