3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-08 17:40:04 +01:00
Datei suchen
Jason Penilla 41ed42701b
Add filtering properties to processResources inputs
Pretty sure this is still needed
2023-04-20 08:45:28 -07:00
.github/workflows Update actions 2022-12-13 11:19:16 -07:00
gradle/wrapper update paperweight 2023-04-04 12:59:11 -07:00
src/main Remove plugin-yml 2023-04-20 08:42:59 -07:00
.editorconfig Initial commit 2021-07-08 05:30:01 -07:00
.gitignore Initial commit 2021-07-08 05:30:01 -07:00
build.gradle.kts Add filtering properties to processResources inputs 2023-04-20 08:45:28 -07:00
gradlew Update Gradle wrapper to 8.0.1 2023-02-24 13:14:46 -07:00
gradlew.bat update gradle wrapper 2022-12-13 11:26:10 -07:00
README.md Remove plugin-yml 2023-04-20 08:42:59 -07:00
settings.gradle.kts Add foojay toolchain resolver plugin 2023-02-24 14:18:43 -07:00

paperweight-test-plugin

jmp's test plugin for paperweight-userdev development

(also serves as an example until more thorough documentation is created)

notes (read these)

  • build.gradle.kts and settings.gradle.kts both contain important configuration.
  • paperweight-userdev automatically detects shadow and will use shadowJar as input for reobfJar. This means no extra configuration is required to use paperweight-userdev with shadow. See the shadow branch on this repository for an exmaple usage of shadow with paperweight-userdev.
  • The run-paper Gradle plugin is optional, it integrates with paperweight and allows for launching a test server with your plugin through the runServer and runMojangMappedServer tasks.
  • Due to a gradle bug, independently applying paperweight-userdev to multiple projects in a build can result in errors. To work around this, apply paperweight-userdev to the root project with apply false (i.e., id("...") version "..." apply false in Kotlin DSL), and then when applying paperweight-userdev to subprojects don't include a version specification. A more advanced solution would involve adding paperweight-userdev as a dependency to your build logic, see reflection-remapper and the source-remap branch on this repo for examples of this.
  • The source-remap branch on this repo has a special remapPluginSources task to remap the source code in src/main/java from spigot to Mojang mappings, outputting remapped source in /src/main/mojangMappedJava. Note that this will only remap your code, not update it from a prior version. Meaning you must be using the dev bundle for the Minecraft version your source code is for when remapping.
  • paperweight-userdev doesn't provide any utilities for doing reflection. reflection-remapper is a companion library to paperweight-userdev assisting with reflection on remapped code.