First of all: we would love to get your contributions, whether they are in form of bug reports, Requests for Enhancement (RFE), documentation, or code patches. This page lists things that are important to know about contributing to Jackson project repositories.
The easiest ways to participate beyond using Jackson is to join one of Jackson mailing lists (Jackson google groups):
- Jackson Announce: Announcement-only list for new Jackson releases, meetups and other events related to Jackson
- Jackson User: List dedicated for discussion on Jackson usage
- Jackson Dev: List for developers of Jackson core components and modules, discussing implementation details, API changes.
or to join chat on
- Jackson-databind gitter forum
There are other related lists and forums as well:
- Smile Format Discussion: List for discussing details of the binary JSON format called Smile (see Smile Specification)
Note that individual Jackson projects have different maintainers; see the individual project README for the list of maintainers of that module.
All bug reports, improvements ideas and RFEs are handled as Github Issues using per-repository Issue Tracker. For example, issues related to Jackson databinding (main json-to/from-Java objects handling) component would go to jackson-databind Issue Tracker.
One effort to help new contributors is to try to collect issues that might be particularly good for new contributors:
Issues for New Contributors (Added for Hacktoberfest 2019)
All code contributions are made using Github Pull Requests: you typically fork the component to modify, and eventually create a Pull Request. It is good to have a Github Issue created for change you want to submit, explaining what is needed (bug fix, change to behavior, new feature) although this is not absolutely required.
When creating code (or documentation, test) change for eventual Pull Request, it is important to understand which Git Branch to use as the base.
Jackson projects maintain a few branches:
master
for developing the still-far-off 3.0.0 release -- but is also used forREADME.md
s2.18
the next minor version in development2.17
the current stable release2.16
the previous stable branch, for which patch releases may still occur2.15
inactive branch that may receive micro-patches for urgent security issues (usually onlyjackson-databind
)
Most bug-fix Pull Requests should be made against the current stable branch, 2.17
.
Pull requests for major new functionality or that significantly alter internals,
but are backwards-compatible with existing behavior should be made against the next minor version
branch (2.18
).
If Jackson's functionality or default behavior is to be altered, master
is the correct branch, but
discussion is probably in order.
If you have any concerns or doubts about branch to use, feel free to reach out on user mailing list or chat; or even on issue tracker of relevant repository.
When submitting a pull request, your choice of a base branch should take into account backwards compatibility.
The Jackson project follows Apache versioning. Patch versions maintain source and binary compatibility; functionality may be added, but existing code that depends upon Jackson must continue to function properly without alteration. Minor versions add functionality, may deprecate existing functionality, and may remove functionality that has been deprecated for at least two minor versions. Any changes that require breaking existing functionality must be part of a major version release.
See Jackson Releases on the wiki for more information.
Jackson projects usually adhere to well-known conventional coding guides, but there are some Jackson-specific coding conventions. Please refer to Jackson Code Style for details.
Jackson's functionality is vast and is used widely, so automated testing for any changes is important for preventing accidental breakage in the future. Tests also document and demonstrate the bounds of functionality, showing the author's intent to others working on the code in the future.
There is not a lot of paperwork related to code changes: Pull Requests are almost all it takes.
But there is one thing that is needed before development team can accept a code change (exception: test code changes do not require one): Contributor License Agreement (CLA). This is needed before your very first code contribution, but covers all Jackson projects and will NOT be needed for other future contributions.
All you need to do is to download the CLA document, print it, fill and sign, scan (or take
photo on your phone) and email that copy to info
at fasterxml
dot com
.
As to document to download, you have 2 choices:
- Standard Jackson Contributor License Agreement (CLA) is a one-page document we need from every contributor of code (we will request it for pull requests), used mostly by individual contributors
- Corporate CLA is used by Corporations to avoid individual employees from having to send separate CLAs; it is also favored by corporate IP lawyers.
of which the first option is more commonly used (by over 90% of contributors).
Note that the first option is available for corporations as well, but most companies have opted to use the second option instead. Core team has no preference over which one gets used: both work; we care more about actual contributions.