Skip to content

Commit

Permalink
Spring-boot jar attachment and Java 11+ issues (#387)
Browse files Browse the repository at this point in the history
* Fixed spring-boot jar replacing main artifact ... supressed Java 11+ warnings

* Cleaning up build output
  • Loading branch information
c-schuler authored Aug 26, 2022
1 parent 8f97461 commit 76ff576
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@
<configuration>
<source>8</source>
<excludePackageNames>org.opencds.cqf.tooling.vmr</excludePackageNames>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -639,6 +640,7 @@
<configuration>
<mainClass>org.opencds.cqf.tooling.Main</mainClass>
<finalName>tooling-${project.version}-jar-with-dependencies</finalName>
<attach>false</attach>
</configuration>
<executions>
<execution>
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/opencds/cqf/tooling/measure/r4/CqfMeasure.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,46 +31,57 @@ public class CqfMeasure extends Measure {

@Child(name = "parameter", type = {ParameterDefinition.class}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Parameters defined by the library", formalDefinition="The parameter element defines parameters used by the library." )
@SuppressWarnings("serial")
protected List<ParameterDefinition> parameter;

@Child(name = "dataRequirement", type = {DataRequirement.class}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="What data is referenced by this library", formalDefinition="Describes a set of data that must be provided in order to be able to successfully perform the computations defined by the library." )
@SuppressWarnings("serial")
protected List<DataRequirement> dataRequirement;

@Child(name = "content", type = {Attachment.class}, order=28, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Contents of the library, either embedded or referenced", formalDefinition="The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the contentType of the attachment determines how to interpret the content." )
@SuppressWarnings("serial")
protected List<Attachment> content;

@Child(name = "populationStatements", type = {}, order=29, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Population Statements of the library", formalDefinition="The populations of the library as a MeasureGroupComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupComponent> populationStatements;

@Child(name = "definitionStatements", type = {}, order=30, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Defintion Statements of the library", formalDefinition="The definitions of the library as a MeasureGroupPopulationComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupPopulationComponent> definitionStatements;

@Child(name = "functionStatements", type = {}, order=31, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Function Statements of the library", formalDefinition="The functions of the library as a MeasureGroupPopulationComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupPopulationComponent> functionStatements;

@Child(name = "supplementalDataElements", type = {}, order=32, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Supplemental Data Elements of the library", formalDefinition="The supplemental data elements of the library as a MeasureGroupPopulationComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupPopulationComponent> supplementalDataElements;

@Child(name = "terminology", type = {TerminologyRef.class}, order=33, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Terminology of the library", formalDefinition="The terminology referenced in the library" )
@SuppressWarnings("serial")
protected List<TerminologyRef> terminology;

@Child(name = "dataCriteria", type = {StringType.class}, order=34, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Data Elements of the library", formalDefinition="The data elements referenced in the library" )
@SuppressWarnings("serial")
protected List<StringType> dataCriteria;

@Child(name = "libraries", type = {Library.class}, order=35, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Measure libraries", formalDefinition="All the libraries the measure depends on" )
@SuppressWarnings("serial")
protected List<Library> libraries;

@Child(name = "citations", type = {RelatedArtifact.class}, order=36, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Additional documentation, citations, etc", formalDefinition="Related artifacts such as additional documentation, justification, or bibliographic references." )
@SuppressWarnings("serial")
protected List<RelatedArtifact> citations;

@Child(name = "sharedPopulationCriteria", type = {PopulationCriteriaMap.class}, order=37, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/opencds/cqf/tooling/measure/stu3/CqfMeasure.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,46 +32,57 @@ public class CqfMeasure extends Measure {

@Child(name = "parameter", type = {ParameterDefinition.class}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Parameters defined by the library", formalDefinition="The parameter element defines parameters used by the library." )
@SuppressWarnings("serial")
protected List<ParameterDefinition> parameter;

@Child(name = "dataRequirement", type = {DataRequirement.class}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="What data is referenced by this library", formalDefinition="Describes a set of data that must be provided in order to be able to successfully perform the computations defined by the library." )
@SuppressWarnings("serial")
protected List<DataRequirement> dataRequirement;

@Child(name = "content", type = {Attachment.class}, order=28, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Contents of the library, either embedded or referenced", formalDefinition="The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the contentType of the attachment determines how to interpret the content." )
@SuppressWarnings("serial")
protected List<Attachment> content;

@Child(name = "populationStatements", type = {}, order=29, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Population Statements of the library", formalDefinition="The populations of the library as a MeasureGroupComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupComponent> populationStatements;

@Child(name = "definitionStatements", type = {}, order=30, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Defintion Statements of the library", formalDefinition="The definitions of the library as a MeasureGroupPopulationComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupPopulationComponent> definitionStatements;

@Child(name = "functionStatements", type = {}, order=31, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Function Statements of the library", formalDefinition="The functions of the library as a MeasureGroupPopulationComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupPopulationComponent> functionStatements;

@Child(name = "supplementalDataElements", type = {}, order=32, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Supplemental Data Elements of the library", formalDefinition="The supplemental data elements of the library as a MeasureGroupPopulationComponent." )
@SuppressWarnings("serial")
protected List<MeasureGroupPopulationComponent> supplementalDataElements;

@Child(name = "terminology", type = {TerminologyRef.class}, order=33, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Terminology of the library", formalDefinition="The terminology referenced in the library" )
@SuppressWarnings("serial")
protected List<TerminologyRef> terminology;

@Child(name = "dataCriteria", type = {StringType.class}, order=34, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Data Elements of the library", formalDefinition="The data elements referenced in the library" )
@SuppressWarnings("serial")
protected List<StringType> dataCriteria;

@Child(name = "libraries", type = {Library.class}, order=35, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Measure libraries", formalDefinition="All the libraries the measure depends on" )
@SuppressWarnings("serial")
protected List<Library> libraries;

@Child(name = "citations", type = {RelatedArtifact.class}, order=36, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Additional documentation, citations, etc", formalDefinition="Related artifacts such as additional documentation, justification, or bibliographic references." )
@SuppressWarnings("serial")
protected List<RelatedArtifact> citations;

@Child(name = "sharedPopulationCriteria", type = {PopulationCriteriaMap.class}, order=37, min=0, max=1, modifier=false, summary=false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public static Workbook getWorkbook(String pathToSpreadsheet) {
FileInputStream spreadsheetStream = new FileInputStream(new File(pathToSpreadsheet));
return new XSSFWorkbook(spreadsheetStream);
} catch (IOException e) {
e.printStackTrace();
throw new IllegalArgumentException("Error reading the spreadsheet: " + e.getMessage());
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
library "CQLv151ChangesApplied"

// Generated on 2022-07-25T11:16:43.371625
// Generated on 2022-08-26T09:24:51.240685

define "CQLv151ChangesApplied":
{
Expand Down

0 comments on commit 76ff576

Please sign in to comment.