How to use this for testing:
Install this plugin to Maven Local:
./gradlew publishToMavenLocal
Clone a new Paper repo and checkout the feature/mojmap
branch.
- Add
mavenLocal()
to the list of repos insettings.gradle.kts
. - Change
paperweight
version to1.0.0-LOCAL-SNAPSHOT
in theplugins {}
block inbuild.gradle.kts
.
Run the task (on the Paper repo) to set up the development environment:
./gradlew patchPaper
All task outputs
paperweight
creates goes into<project-root>/.gradle/caches
.
Create a remote JVM debug run configuration in IntelliJ which connects to port 5005, then run Gradle in debug mode:
./gradlew --no-daemon -Dorg.gradle.debug=true <task>
Gradle will not start until the debugger is connected so you don't need to worry about missing a breakpoint.