Building
Step-by-step guide for building your own version of Sonar.
Last updated
Step-by-step guide for building your own version of Sonar.
The first step is cloning the repository. You can achieve this by opening your Git terminal in your project folder and typing
git clone https://github.com/jonesdevelopment/sonarIf you don't want to clone the repository, you can simply download the files as a zip archive.
If you want, you can now open your IDE and make some changes to the code. This step is completely optional.
There are multiple ways of achieving a working jar file for Sonar. If you are using IntelliJ IDEA, you can create a configuration to simplify the building process:
Click Current File in your project.
Click Edit Configurations.
Add a new Gradle configuration.
Set the Run command to build-sonar.
Click on OK and run the configuration.
If you are not using IntelliJ IDEA, you can simply run the Gradle build script itself.
Linux: ./gradlew build-sonar
Windows: gradlew.bat build-sonar
If you are experiencing build failures, try adding --stacktrace or --debug to your Gradle command. If you have any further questions, please feel free to join the Discord and ask for help.
Last updated