Skip to content

Building the project


  • Java SE 17 or later

Check out, build, and extend Codyze

  1. Fork the Codyze repo on GitHub and clone it, including submodules:
    git clone --recurse-submodules git://<YOUR GITHUB>/codyze
  2. Create a branch for your contribution. We recommend prefixing the branch name with fix- if you are providing a bug fix or feature- if you plan to add a feature:
    git checkout -b feature-MY_EPIC_FEATURE
  3. Make your changes and make sure that the project builds without errors, passes all tests, and is properly formatted: ./gradlew :codyze-cli:clean :codyze-cli:spotlessApply :codyze-cli:build :codyze-cli:installDist
    The purpose of these gradle tasks is as follows:
    • clean Removes previous build artifacts
    • spotlessApply Applies source code formatting with the settings in formatter-settings.xml. If the code is not properly formatted the build server will reject it.
    • build Builds the main artifact (the jar file containing Codyze)
    • installDist Create an executable script for Linux, Mac, and Windows in codyze-cli/build/install/codyze-cli/bin
  4. When everything works, git commit your changes and git push them to GitHub, then create a pull request (PR). Make sure to describe want you intend the code to do and refer to any issues your PR might address (using the notation #123)
  5. If you're not yet ready for a review, add "WIP" to the PR name to indicate it's a work in progress.
  6. Wait for the automated CI workflow to do some checks.
  7. Continue working on your PR by pushing further commits to your branch until you are satisfied
  8. When you're ready for a review, add a comment to the PR, and remove any "WIP" markers.

Code formatting

Codyze uses the gradle spotless plugin to format source code. You may import the code style definitions into your favorite IDE to apply it immediately.


  • Simply run ./gradlew :codyze-cli:spotlessApply


  • In IntelliJ, open Settings->Editor->Code Style->Java and click on the cog icon.
  • Choose Import Scheme->Eclipse XML Profile and select the file formatter-settings.xml in the project's root folder.

Import code style formatter into IntelliJ


  • In Eclipse, open Window->Preferences->Java->Code Style->Formatter
  • Click Import and select the file formatter-settings.xml in the project's root folder.

Import code style formatter into Eclipse

Last update: 2023-03-14
Created: 2023-03-14