Skip to content

Commit 5bc0b1d

Browse files
committed
Fix CI JavaDoc job by installing linter-core from quick-build artifacts
The maven-full job downloads only target/ directories from maven-quick, so linter-core is not available in the local Maven repository when javadoc:javadoc runs for linter-cli. Install the pre-built JAR with install:install-file before the matrix steps so inter-module dependencies resolve without hitting Maven Central. Also replace an unescaped '&' in FhirAuthorizationCache Javadoc to silence invalid-input warnings during Javadoc generation.
1 parent c2f719a commit 5bc0b1d

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ jobs:
130130
distribution: 'zulu'
131131
java-version: 25
132132
cache: 'maven'
133+
- name: Install quick-build artifacts to local repository
134+
run: |
135+
VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:3.6.3:exec)
136+
mvn install:install-file \
137+
-Dfile="linter-core/target/linter-core-${VERSION}.jar" \
138+
-DpomFile=linter-core/pom.xml
133139
- name: ${{ matrix.mvn.name }}
134140
run: ${{ matrix.mvn.cmd }}
135141

linter-core/src/main/java/dev/dsf/linter/util/resource/FhirAuthorizationCache.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private static void dumpStatistics()
306306

307307
/**
308308
* Seeds the CodeSystem cache from both the project directory (disk) and the project classpath
309-
* (dependencies & plugin JAR). Keeps parsing logic centralized by materializing classpath resources
309+
* (dependencies and plugin JAR). Keeps parsing logic centralized by materializing classpath resources
310310
* to temporary files.
311311
*
312312
* @param projectRoot the root of the project used to determine base traversal path and classpath setup
@@ -530,17 +530,6 @@ public static void registerValueSetSystem(String system) {
530530
SYSTEMS_IN_VALUE_SETS.add(system);
531531
}
532532

533-
/**
534-
* Returns {@code true} if the given CodeSystem URI is referenced by at least one
535-
* known ValueSet's {@code compose.include.system}.
536-
*
537-
* @param system the CodeSystem URI to check
538-
* @return {@code true} if the system is included in at least one known ValueSet
539-
*/
540-
public static boolean isSystemInAnyValueSet(String system) {
541-
return system != null && SYSTEMS_IN_VALUE_SETS.contains(system);
542-
}
543-
544533
/**
545534
* Returns {@code true} if a ValueSet with the given canonical URL has been loaded.
546535
* Version suffixes (everything after {@code |}) are stripped before comparison.

0 commit comments

Comments
 (0)