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

[build] CMake: simplify source JAR creation and install #6831

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

Gold856
Copy link
Contributor

@Gold856 Gold856 commented Jul 14, 2024

An add_source_jar macro has been added to simplify maintaining source JARs. The old approach has many bugs, and is easily prone to falling out-of-date when new packages are introduced. Instead, the root directories where Java packages are located are given to the macro, and the macro will handle finding all the source files and assigning the right package to them. In addition, the minimum CMake version has been bumped to 3.21 to ensure the RESOURCES parameter is available.

@Gold856 Gold856 requested review from PeterJohnson and a team as code owners July 14, 2024 00:55
Copy link
Contributor

This PR modifies commands. Please open a corresponding PR in Python Commands and include a link to this PR.

@PeterJohnson PeterJohnson merged commit 9703142 into wpilibsuite:main Jul 15, 2024
34 checks passed
@Gold856 Gold856 deleted the fix-java-source-jars branch July 16, 2024 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants