Skip to content

Commit

Permalink
eliminate faulty java 17
Browse files Browse the repository at this point in the history
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
  • Loading branch information
zvigrinberg committed Mar 5, 2024
1 parent 76ad785 commit 4d0e077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
env:
EXHORT_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
EXHORT_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"
PATH: "${{steps.java-location.outputs.java-bin-location}}:${{steps.java-location.outputs.path-env}}"
JAVA_HOME: "${{steps.java-location.outputs.java-bin-location}}"
run: |
mvn verify -Dskip.junit_platform=true -Pits,cov -B -ff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.github.packageurl.PackageURL;
import com.redhat.exhort.Api;
import com.redhat.exhort.Provider;
import com.redhat.exhort.impl.ExhortApi;
import com.redhat.exhort.logging.LoggersFactory;
import com.redhat.exhort.sbom.Sbom;
import com.redhat.exhort.sbom.SbomFactory;
Expand Down Expand Up @@ -469,7 +470,7 @@ private List<DependencyAggregator> getDependencies(final Path manifestPath) thro
}

private Map<String, String> getMvnExecEnvs() {
var javaHome = System.getProperty("JAVA_HOME");
var javaHome = ExhortApi.getStringValueEnvironment("JAVA_HOME",null);
if (javaHome != null && !javaHome.isBlank()) {
return Collections.singletonMap("JAVA_HOME", javaHome);
}
Expand Down

0 comments on commit 4d0e077

Please sign in to comment.