-
Notifications
You must be signed in to change notification settings - Fork 126
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 PMD to 7.0.0 #689
Merged
Merged
Update PMD to 7.0.0 #689
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e2752c7
Remove AndroidManifests for pure java libraries
zod 1573aa5
Upgrade to AGP 8.0 and Gradle 8.4
zod 2f7ce42
Upgrade to PMD 7.0.0 and disable violated rules
zod dd89634
Fix newly detected violations from PMD 7
zod c73a8ce
Enable PMD rule UnnecessaryBoxing and fix violations
zod 6c22d7d
Update workflows to java 17
zod b8929ab
Global build ignore
zod 5d4065d
Use conventions instead of cross-project configuration
zod 258a0c1
Remove leftover maven file
zod 8e3c9a9
Target Java 11
zod 13781fb
fixup! Upgrade to AGP 8.0 and Gradle 8.4
zod d969ac1
Downgrade AGP version for IntelliJ IDEA compatibility
zod 83f001e
Merge branch 'master' into pmd-7
zod 47f5812
Add dependency on brouter-routing-app for distZip
zod File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One remark only, the BRouter server still uses JDK 11.
Therefore, the output lib cannot be used directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to compile for older Java releases we should target a specific java version. It seems reasonable to target Java 11 but use JDK 17 to build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For maximum compatibility with old Android versions (that do not contain newer Java API),
in the open source libraries I maintain, we may use Java 17 to compile,
but have
sourceCompatibility
andtargetCompatibility
withJavaVersion.VERSION_1_8
.For example:
https://github.com/mapsforge/mapsforge/blob/master/build.gradle#L32-L33
https://github.com/mapsforge/vtm/blob/master/build.gradle#L34-L35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine, I could try sourceCompatibility and targetCompatibility next week with the test server.