> For the complete documentation index, see [llms.txt](https://docs.jonesdev.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jonesdev.xyz/development/building.md).

# Building

### Cloning the repository

The first step is cloning the repository. You can achieve this by opening your Git terminal in your project folder and typing

<pre><code><strong>git clone https://github.com/jonesdevelopment/sonar
</strong></code></pre>

If you don't want to clone the repository, you can simply download the files as a zip archive.

### Making changes

If you want, you can now open your IDE and make some changes to the code. This step is completely optional.

### Building the jar file

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:

1. Click **Current File** in your project.
2. Click **Edit Configurations.**
3. Add a new **Gradle** configuration.
4. Set the **Run** command to `build-sonar`.
5. 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`

{% hint style="info" %}
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](https://sonar.top/discord) and ask for help.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.jonesdev.xyz/development/building.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
