Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and fix text translations test #1154

Merged
merged 2 commits into from Mar 12, 2023

Conversation

calcastor
Copy link
Contributor

@calcastor calcastor commented Mar 7, 2023

Firstly, this PR updates all dependencies that are possible or reasonable to update (not sure what that old log4j is there for). Briefly tested a running server and everything seems to work as intended.

If we introduce a build-time dependency on JDK 11 or above, we can upgrade fmt-maven-plugin to the latest version now maintained by Spotify, but I don't know if we want to do that. For the record, I haven't built PGM with a JDK lower than 11 in ages and it always seems to run fine. Given that, and since fmt-maven-plugin is only used when building to check code style, such a dependency might be reasonable, but I would understand hesistancy.

What we cannot update is JGit, newer versions of which depend on a Java 11+ runtime.

Secondly, this PR fixes TextTranslationsTest. For some reason our tests seem to have just not been running at all, at least until CI images received an update to Maven 3.9.0. They suddenly work now, somehow. testGetLocales seems to assume a different enough locale from US will always be available, so let's run testGetNearestLocale first and then check for either locales.contains(Locale.getDefault()) or locales.contains(getNearestLocale(Locale.getDefault())) in testGetLocales.

Signed-off-by: BT (calcastor/mame) <43831917+calcastor@users.noreply.github.com>
@calcastor calcastor force-pushed the dep-updates branch 2 times, most recently from 48d9836 to 2d13a60 Compare March 10, 2023 02:03
Signed-off-by: BT (calcastor/mame) <43831917+calcastor@users.noreply.github.com>
@calcastor calcastor changed the title Update dependencies Update dependencies and fix text translations test Mar 10, 2023
@calcastor calcastor marked this pull request as ready for review March 10, 2023 02:29
@Electroid Electroid merged commit cdbf4e2 into PGMDev:dev Mar 12, 2023
2 checks passed
@calcastor calcastor deleted the dep-updates branch March 13, 2023 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants