# Publishing

The plugin adds the `submitForReview` task to the root project. This task scans each project with the plugin applied and performs the following tasks in order:

1. Deletes any previous submission bundles or generated manifests
2. Generates manifests as declared by the `manifests` block of each project
3. Scans and validates any manually produced manifests
4. Bundles all source code, resources and manifests into the root project build directory
5. Submits the source bundle to the store for review and publication

This requires the `submissionToken` to be set (see the Configuration section). The best way to do this is to add a property called `runemateSubmissionToken` in `$USER_HOME/.gradle/gradle.properties`:

```
runemateSubmissionToken=YOUR_TOKEN
```

The submission token itself can be acquired from the [RuneMate Developer panel](https://www.runemate.com/developer).

{% hint style="info" %}
If you want to preview the contents that will be submitted, run the `buildSubmission`, this will generate a tarball in `$rootProject/build/runemate/distribution`.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://runemate.gitbook.io/runemate-documentation/getting-started/gradle-plugin/publishing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
