- Familiarize yourself with GitHub
- Java 8 (newer version is fine, but the project still uses 1.8 bytecode)
- Maven
- Git
- Preferrably an IDE such as Eclipse, IntelliJ or NetBeans
- Eclipse requires the m2e-egit connector to be installed so that you can seamlessly import your BoneJ2 fork from GitHub, but the version in the marketplace is often too old: you may need to install it from the repository.
- Create a fork
- Synchronize your fork
- Create a topic branch for your fix / new feature, e.g.
fix-issue-#1
- Write descriptive commit messages
- Ideally each commit in the history should build
- Keep commits small. For example:
POM: add dependency
Add myMethod
Add test
Add Javadoc
Format code
- Before creating a PR:
- Your code should have tests
- At least
public
API should have Javadoc- You can check that your Javadoc is valid by running
mvn javadoc:javadoc
- You can check that your Javadoc is valid by running
- Check that Maven can build BoneJ without errors by running
mvn clean package
- Create a PR and wait for a review
- If team members request changes to your code, add commits until PR is accepted
Code added to BoneJ should be licensed under BSD-2.
Don't let the guidelines discourage you, they are not set in stone. We'll help to get your PR ready!