Skip to content

Commit afee4f9

Browse files
Merge remote-tracking branch 'origin/master' into fix-packageInstallation-withPartitions-7375
2 parents e6e04ba + c8002da commit afee4f9

File tree

650 files changed

+24917
-4276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

650 files changed

+24917
-4276
lines changed

.github/actions/build-cache/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ runs:
5151
MAVEN_CACHE_FOLDER: ${{ inputs.cache-path }}
5252
MAVEN_OPTS: '-Xmx1024m -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS -Duser.timezone=America/Toronto'
5353
run: |
54-
mvn clean install -P CI,CHECKSTYLE \
54+
mvn clean install -P CI \
5555
-Dmaven.test.skip=true -e -B \
5656
-Dmaven.javadoc.skip=true \
5757
-Dmaven.wagon.http.pool=false \
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: 'Cross-Module Checkstyle Validation'
2+
description: 'Runs cross-module checkstyle validation to detect duplicate error codes and other violations'
3+
4+
inputs:
5+
java-version:
6+
description: 'The Java version to use'
7+
required: false
8+
default: '17'
9+
maven-cache-key:
10+
description: 'The cache key for Maven dependencies'
11+
required: true
12+
hapi-cache-key:
13+
description: 'The cache key for HAPI dependencies'
14+
required: true
15+
16+
runs:
17+
using: "composite"
18+
steps:
19+
- name: Create and List Maven Cache Directory
20+
shell: bash
21+
run: |
22+
mkdir -p $HOME/.m2/repository
23+
pwd
24+
ls -al $HOME/.m2/repository
25+
env:
26+
MAVEN_CACHE_FOLDER: $HOME/.m2/repository
27+
28+
- name: Restore HAPI Cache
29+
uses: ./.github/actions/caching-handler
30+
with:
31+
path: "$HOME/.m2/repository/ca/uhn/"
32+
key: ${{ inputs.hapi-cache-key }}
33+
34+
- name: Set up JDK
35+
uses: actions/setup-java@v4
36+
with:
37+
distribution: 'temurin'
38+
java-version: ${{ inputs.java-version }}
39+
cache: 'maven'
40+
41+
- name: Restore Maven Cache
42+
uses: ./.github/actions/caching-handler
43+
with:
44+
key: ${{ inputs.maven-cache-key }}
45+
46+
- name: Debug cache contents
47+
shell: bash
48+
run: |
49+
echo "Checking Maven repository contents..."
50+
ls -la $HOME/.m2/repository/ca/uhn/hapi/fhir/ || echo "HAPI FHIR directory not found"
51+
ls -la $HOME/.m2/repository/ca/uhn/hapi/fhir/hapi-fhir-checkstyle/ || echo "hapi-fhir-checkstyle directory not found"
52+
find $HOME/.m2/repository -name "*checkstyle*" -type f || echo "No checkstyle artifacts found"
53+
54+
- name: Run cross-module checkstyle validation
55+
shell: bash
56+
env:
57+
MAVEN_CACHE_FOLDER: $HOME/.m2/repository
58+
run: |
59+
echo "Running cross-module checkstyle validation to detect duplicate error codes and other violations..."
60+
echo "This step ensures that HAPI FHIR error codes (Msg.code) are unique across all modules."
61+
echo "If this step fails, it means there are checkstyle violations that must be fixed before the build can proceed."
62+
echo ""
63+
mvn validate -P CHECKSTYLE --batch-mode --no-transfer-progress \
64+
-Dmaven.repo.local=$MAVEN_CACHE_FOLDER

.github/workflows/parallel-pipeline-build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,26 @@ jobs:
2626
java-version: '17'
2727
cache-path: $HOME/.m2/repository
2828

29+
checkstyle:
30+
runs-on: ubuntu-latest
31+
needs: build-cache
32+
continue-on-error: true
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v4
36+
37+
- name: Run Checkstyle Validation
38+
uses: ./.github/actions/checkstyle-validation
39+
with:
40+
java-version: '17'
41+
maven-cache-key: ${{ github.ref_name }}-maven-${{ hashFiles('**/pom.xml') }}
42+
hapi-cache-key: ${{ github.ref_name }}-hapi-${{ github.run_id }}
43+
2944
generate-module-list:
3045
name: Generate List of Modules to Build
3146
runs-on: ubuntu-latest
47+
needs: checkstyle
48+
if: always()
3249
outputs:
3350
modules_list: ${{ steps.format-modules.outputs.modules_list }}
3451
steps:
@@ -94,7 +111,7 @@ jobs:
94111
final-result:
95112
if: ${{ always() }}
96113
runs-on: ubuntu-latest
97-
needs: [ assemble-test-reports ]
114+
needs: [ assemble-test-reports, checkstyle ]
98115
steps:
99116
- run: exit 1
100117
if: >-

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@ Snap.*
170170
/database*/
171171
/activemq-data/
172172
/.run/
173-
/CLAUDE.md
173+
**/CLAUDE.md
174174

175175
**/.claude/settings.local.json

hapi-deployable-pom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-fhir</artifactId>
8-
<version>8.4.0</version>
8+
<version>8.7.0-SNAPSHOT</version>
99

1010
<relativePath>../pom.xml</relativePath>
1111
</parent>

hapi-fhir-android/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-deployable-pom</artifactId>
8-
<version>8.4.0</version>
8+
<version>8.7.0-SNAPSHOT</version>
99

1010
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1111
</parent>

hapi-fhir-base/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-deployable-pom</artifactId>
8-
<version>8.4.0</version>
8+
<version>8.7.0-SNAPSHOT</version>
99

1010
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1111
</parent>
1212

1313
<artifactId>hapi-fhir-base</artifactId>
1414
<packaging>bundle</packaging>
1515

16-
<url>http://jamesagnew.github.io/hapi-fhir/</url>
16+
<url>https://hapifhir.io/</url>
1717

1818
<name>HAPI FHIR - Core Library</name>
1919

hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public AddProfileTagEnum getAddProfileTagWhenEncoding() {
330330
* avoiding the need to manually add profile declarations for these custom types.
331331
* </p>
332332
* <p>
333-
* See <a href="http://jamesagnew.gihhub.io/hapi-fhir/doc_extensions.html">Profiling and Extensions</a>
333+
* See <a href="https://hapifhir.io/hapi-fhir/docs/model/profiles_and_extensions.html">Profiles and Extensions</a>
334334
* for more information on using custom types.
335335
* </p>
336336
* <p>

hapi-fhir-base/src/main/java/ca/uhn/fhir/context/ModelScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ private void scanResourceForSearchParams(
426426
components = new ArrayList<>();
427427
for (String name : searchParam.compositeOf()) {
428428
String ref = toCanonicalSearchParameterUri(theResourceDef, name);
429-
components.add(new RuntimeSearchParam.Component(null, ref));
429+
components.add(new RuntimeSearchParam.Component(null, ref, null));
430430
}
431431
}
432432

hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeSearchParam.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public List<String> getPathsSplitForResourceType(@Nullable String theResourceNam
346346
return retVal;
347347
}
348348

349-
public void addUpliftRefchain(@Nonnull String theCode, @Nonnull String theElementName) {
349+
public void addUpliftRefchain(@Nonnull String theCode, @Nullable String theElementName) {
350350
myUpliftRefchains.put(theCode, theElementName);
351351
}
352352

@@ -435,20 +435,23 @@ public enum RuntimeSearchParamStatusEnum {
435435
public static class Component {
436436
private final String myExpression;
437437
private final String myReference;
438+
private final String myComboUpliftChain;
438439

439440
/**
440441
* Constructor
441442
*/
442-
public Component(String theExpression, String theReference) {
443+
public Component(String theExpression, String theReference, String theComboUpliftChain) {
443444
myExpression = theExpression;
444445
myReference = theReference;
446+
myComboUpliftChain = theComboUpliftChain;
445447
}
446448

447449
@Override
448450
public String toString() {
449451
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
450452
.append("expression", myExpression)
451453
.append("reference", myReference)
454+
.append("chain", myComboUpliftChain)
452455
.toString();
453456
}
454457

@@ -459,5 +462,9 @@ public String getExpression() {
459462
public String getReference() {
460463
return myReference;
461464
}
465+
466+
public String getComboUpliftChain() {
467+
return myComboUpliftChain;
468+
}
462469
}
463470
}

0 commit comments

Comments
 (0)