Skip to content

Commit

Permalink
#164 : Upgrade to Gradle 8.7 + ignore SpotBugs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gazbert committed Apr 20, 2024
1 parent 0d36c2b commit 85c57c6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private void initialise() {
final String errorMsg =
"Failed to initialise Email Alerter. "
+ "Alerts are enabled but no SMTP Config has been supplied in config.";
log.error(errorMsg);
throw new IllegalStateException(errorMsg);
}

log.info("SMTP host: " + smtpConfig.getHost());
Expand Down
6 changes: 6 additions & 0 deletions etc/spotbugs-exclude-filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,10 @@
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>

<!-- It does throw an IllegalArg exception if SMTP config is missing - the bot should fail to start. -->
<Match>
<Class name="com.gazbert.bxbot.core.mail.EmailAlerter"/>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</Match>

</FindBugsFilter>
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 2 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down

0 comments on commit 85c57c6

Please sign in to comment.