Prevent Gradle from emitting an unshaded plugin jar (OldCombatMechanics-<version>.jar) which does not contain shaded dependencies and risks being mistaken for the distributable artefact.
Ensure the build produces the single shaded plugin artefact build/libs/OldCombatMechanics.jar from the ShadowJar task.
Description
Disabled the plain Gradle jar task by setting tasks.named<Jar>("jar") { enabled = false } in build.gradle.kts so it no longer produces the unshaded jar.
Kept the shadowJar configuration as the sole assembled plugin artefact and ensured assemble depends on shadowJar so the shaded OldCombatMechanics.jar remains the output.
Updated AGENTS.md to document the packaging change so repository notes reflect that only the shaded jar is produced.
Testing
Ran ./gradlew -q -I /tmp/print-task-state.init.gradle.kts help to inspect task state, which printed jar.enabled=false and shadowJar.enabled=true, confirming the task disable took effect. (success)
Attempted ./gradlew clean assemble to build the artefact but the run failed in this environment because no Java 17 toolchain installation was available for Gradle to use; the change itself does not depend on that toolchain and is ready for CI/maintainer verification. (environment failure)
### Motivation
- Prevent Gradle from emitting an unshaded plugin jar (`OldCombatMechanics-<version>.jar`) which does not contain shaded dependencies and risks being mistaken for the distributable artefact.
- Ensure the build produces the single shaded plugin artefact `build/libs/OldCombatMechanics.jar` from the ShadowJar task.
### Description
- Disabled the plain Gradle `jar` task by setting `tasks.named<Jar>("jar") { enabled = false }` in `build.gradle.kts` so it no longer produces the unshaded jar.
- Kept the `shadowJar` configuration as the sole assembled plugin artefact and ensured `assemble` depends on `shadowJar` so the shaded `OldCombatMechanics.jar` remains the output.
- Updated `AGENTS.md` to document the packaging change so repository notes reflect that only the shaded jar is produced.
### Testing
- Ran `./gradlew -q -I /tmp/print-task-state.init.gradle.kts help` to inspect task state, which printed `jar.enabled=false` and `shadowJar.enabled=true`, confirming the task disable took effect. (success)
- Attempted `./gradlew clean assemble` to build the artefact but the run failed in this environment because no Java 17 toolchain installation was available for Gradle to use; the change itself does not depend on that toolchain and is ready for CI/maintainer verification. (environment failure)
------
[Codex Task](https://chatgpt.com/codex/tasks/task_e_69c10c0f51e0832f9ab0ad5cd866ead2)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Motivation
OldCombatMechanics-<version>.jar) which does not contain shaded dependencies and risks being mistaken for the distributable artefact.build/libs/OldCombatMechanics.jarfrom the ShadowJar task.Description
jartask by settingtasks.named<Jar>("jar") { enabled = false }inbuild.gradle.ktsso it no longer produces the unshaded jar.shadowJarconfiguration as the sole assembled plugin artefact and ensuredassembledepends onshadowJarso the shadedOldCombatMechanics.jarremains the output.AGENTS.mdto document the packaging change so repository notes reflect that only the shaded jar is produced.Testing
./gradlew -q -I /tmp/print-task-state.init.gradle.kts helpto inspect task state, which printedjar.enabled=falseandshadowJar.enabled=true, confirming the task disable took effect. (success)./gradlew clean assembleto build the artefact but the run failed in this environment because no Java 17 toolchain installation was available for Gradle to use; the change itself does not depend on that toolchain and is ready for CI/maintainer verification. (environment failure)Codex Task