Skip to content

Commit

Permalink
Sonar error fix (#239)
Browse files Browse the repository at this point in the history
Try a fix for Sonar & Java 17 from Travis support
  • Loading branch information
jgallagher59701 authored Jan 23, 2024
1 parent 11e6695 commit ff7a564
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ addons:
- libcppunit-dev
- gcovr
- libfl-dev # needed for focal, but not xenial. jhrg 1/18/24
- openjdk-17-jre # This should get Java 17. jhrg 1/18/24
# - openjdk-17-jre # Removed, see hack in before_install: jhrg 1/23/24
# remove support for debian packages. jhrg 2/23/21
# - build-essential
# - lintian
Expand Down Expand Up @@ -90,6 +90,12 @@ env:

before_install:
- pip install --user awscli
# fix for Java 17 install for Sonar from Travis CI support. jhrg 1/23/24
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java 17.0.2-open
- sdk use java 17.0.2-open
- java -version

install:
# $HOME is /home/travis and $TRAVIS_BUILD_DIR is /home/travis/build/OPENDAP/libdap4
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sonar.projectName=OPeNDAP libdap
sonar.projectVersion=1.0

# Hack added to keep us going until Jan 28th, 2024. jhrg 1/18/24
sonar.scanner.force-deprecated-java-version=true
# sonar.scanner.force-deprecated-java-version=true

sonar.sources=.
sonar.exclusions=old/**,debian/**,gl/**,VCPP/**,win32/**
Expand Down

0 comments on commit ff7a564

Please sign in to comment.