Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions wiki/modgradle/docs/meta/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,25 @@ artifacts {
In this example, both sources and javadoc jar-files will be created during the build process.
However, only the sources will get published to maven and uploaded to mod hosting websites.

### Using JarJar as the main artifact

By default, ModGradle uses the `jar` task as the main artifact for publishing and uploading.
You can switch to using the `jarJar` task (and optionally adjust classifiers) like this:

```groovy
artifacts {
useJarJar(true)
}
```

This makes ModGradle use `jarJar` as the main artifact.
With `true`, it also applies the common “thin + bundled” layout:

- `jar` → `-thin`
- `jarJar` → no classifier

If you want to use `jarJar` without changing classifiers, call `useJarJar()` without arguments.

## resources

The `resources` block allows to specify in which files parameter expansion should take place.
Expand Down