@@ -25,24 +25,29 @@ repositories {
2525 }
2626}
2727
28+ // Uncomment to see deprecation warnings
29+ // tasks.withType(JavaCompile) {
30+ // options.compilerArgs << "-Xlint:deprecation"
31+ // }
32+
2833checkstyle {
2934 toolVersion ' 8.4'
3035 // showViolations = true
3136}
3237
3338jacoco {
34- toolVersion ' 0.8.6 '
39+ toolVersion ' 0.8.7 '
3540}
3641
3742dependencies {
3843 // This dependency is found on compile classpath of this component and consumers.
3944 implementation ' com.google.code.gson:gson:2.8.7'
4045 implementation ' com.jayway.jsonpath:json-path:2.4.0'
41- implementation ' ca.uhn.hapi.fhir:hapi-fhir-base:5.2 .0'
42- implementation ' ca.uhn.hapi.fhir:hapi-fhir-structures-dstu3:5.2 .0'
43- implementation ' ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2:5.2 .0'
44- implementation ' ca.uhn.hapi.fhir:hapi-fhir-structures-r4:5.2 .0'
45- implementation ' ca.uhn.hapi.fhir:hapi-fhir-client:5.2 .0'
46+ implementation ' ca.uhn.hapi.fhir:hapi-fhir-base:5.7 .0'
47+ implementation ' ca.uhn.hapi.fhir:hapi-fhir-structures-dstu3:5.7 .0'
48+ implementation ' ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2:5.7 .0'
49+ implementation ' ca.uhn.hapi.fhir:hapi-fhir-structures-r4:5.7 .0'
50+ implementation ' ca.uhn.hapi.fhir:hapi-fhir-client:5.7 .0'
4651 // C-CDA export uses Apache FreeMarker templates
4752 implementation ' org.freemarker:freemarker:2.3.26-incubating'
4853
@@ -72,7 +77,14 @@ dependencies {
7277 // get rid of SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
7378 // if we switch to a real logging framework we may want to switch this
7479 implementation " org.slf4j:slf4j-api:1.7.9"
75- // compile "org.slf4j:slf4j-nop:1.6.1" // SLF4J seems to already be provided by org.apache.logging.log4j
80+ // implementation "org.slf4j:slf4j-nop:1.7.9" // SLF4J seems to already be provided by org.apache.logging.log4j
81+
82+ // ensure transitive dependencies do not use vulnerable log4j
83+ implementation " org.apache.logging.log4j:log4j-core" , {
84+ version {
85+ strictly ' 2.17.0'
86+ }
87+ }
7688
7789 // Physiology simulation dependencies
7890 implementation files(' lib/sbscl/SimulationCoreLibrary_v1.5_slim.jar' )
@@ -92,12 +104,12 @@ dependencies {
92104 testImplementation ' org.powermock:powermock-module-junit4:1.7.1'
93105 testImplementation ' org.powermock:powermock-api-mockito2:1.7.1'
94106 testImplementation ' com.github.tomakehurst:wiremock-jre8:2.26.3'
95- testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation:5.2 .0'
96- testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation-resources-r4:5.2 .0'
97- testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation-resources-dstu3:5.2 .0'
98- testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation-resources-dstu2:5.2 .0'
99- testImplementation ' com.helger:ph-schematron:5.0.4 '
100- testImplementation ' com.helger:ph-commons:9.1.1 '
107+ testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation:5.7 .0'
108+ testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation-resources-r4:5.7 .0'
109+ testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation-resources-dstu3:5.7 .0'
110+ testImplementation ' ca.uhn.hapi.fhir:hapi-fhir-validation-resources-dstu2:5.7 .0'
111+ testImplementation ' com.helger:ph-schematron:5.6.5 '
112+ testImplementation ' com.helger:ph-commons:9.5.4 '
101113}
102114
103115// Provide more descriptive test failure output
@@ -110,11 +122,17 @@ test {
110122 // showStandardStreams = true
111123 }
112124 maxHeapSize = " 6144m"
125+ jacoco {
126+ excludes = [" org.hl7.*" , " com.google.*" ]
127+ }
113128}
114129
115130buildscript {
116131 repositories {
117- jcenter()
132+ mavenCentral()
133+ maven {
134+ url " https://oss.sonatype.org/content/repositories/snapshots"
135+ }
118136 }
119137 dependencies {
120138 // commons-io used in getting the version id below
@@ -126,8 +144,8 @@ buildscript {
126144
127145jacocoTestReport {
128146 reports {
129- xml. enabled true
130- html. enabled true
147+ xml. required = true
148+ html. required = true
131149 }
132150}
133151
@@ -137,7 +155,7 @@ task graphviz(type: JavaExec) {
137155 group ' Application'
138156 description ' Generate rule visualization'
139157 classpath sourceSets. main. runtimeClasspath
140- main = " Graphviz"
158+ mainClass = " Graphviz"
141159}
142160
143161task uberJar (type : Jar ) {
@@ -166,30 +184,30 @@ task concepts(type: JavaExec) {
166184 group ' Application'
167185 description ' Create a list of simulated concepts'
168186 classpath sourceSets. main. runtimeClasspath
169- main = " org.mitre.synthea.helpers.Concepts"
187+ mainClass = " org.mitre.synthea.helpers.Concepts"
170188 args ' false'
171189}
172190
173191task conceptswithoutcosts (type : JavaExec ) {
174192 group ' Application'
175193 description ' Create a list of simulated concepts without costs'
176194 classpath sourceSets. main. runtimeClasspath
177- main = " org.mitre.synthea.helpers.Concepts"
195+ mainClass = " org.mitre.synthea.helpers.Concepts"
178196 args ' true'
179197}
180198
181199task attributes (type : JavaExec ) {
182200 group ' Application'
183201 description ' Create a list of patient attributes'
184202 classpath sourceSets. main. runtimeClasspath
185- main = " org.mitre.synthea.helpers.Attributes"
203+ mainClass = " org.mitre.synthea.helpers.Attributes"
186204}
187205
188206task overrides (type : JavaExec ) {
189207 group ' Application'
190208 description ' Create a list of modules parameters in module override format'
191209 classpath sourceSets. main. runtimeClasspath
192- main = " org.mitre.synthea.helpers.ModuleOverrides"
210+ mainClass = " org.mitre.synthea.helpers.ModuleOverrides"
193211 doFirst {
194212 // TODO: is there a way to make this cleaner?
195213 String includeFields = project. hasProperty(' includeFields' ) ? project. getProperty(' includeFields' ) : " "
@@ -205,7 +223,7 @@ task physiology(type: JavaExec) {
205223 group ' Application'
206224 description ' Test a physiology simulation'
207225 classpath sourceSets. main. runtimeClasspath
208- main = " org.mitre.synthea.engine.PhysiologySimulator"
226+ mainClass = " org.mitre.synthea.engine.PhysiologySimulator"
209227}
210228
211229task versionTxt () {
@@ -273,7 +291,7 @@ artifacts {
273291}
274292
275293def mavenGroup = ' org.mitre.synthea'
276- def mavenVersion = ' 3.0 .0-SNAPSHOT'
294+ def mavenVersion = ' 3.1 .0-SNAPSHOT'
277295
278296publishing {
279297 publications {
0 commit comments