jpenilla / run-task

Gradle plugins adding tasks to run Minecraft server and proxy software
Apache License 2.0
214 stars 18 forks source link

Translate https://github.com/jpenilla/run-paper/wiki/Extensions to Potato #13

Open ryantheleach opened 2 years ago

ryantheleach commented 2 years ago

I'm trying to debug https://github.com/oddlama/vane and contribute, but I'm pretty potato when it comes to gradle.

It would be very appreciated if https://github.com/jpenilla/run-paper/wiki/Extensions had a little more information that could be followed for multi-module projects :-), or maybe an example.

ryantheleach commented 2 years ago

For Vane, the following is what would have helped me <3

subprojects { //Note! You may need to ignore non-plugin subprojects here.
    rootProject.tasks.runMojangMappedServer {
        pluginJars(tasks.named<io.papermc.paperweight.tasks.RemapJar>("reobfJar").flatMap { it.inputJar })
    }

    rootProject.tasks.runServer {
        pluginJars(tasks.named<io.papermc.paperweight.tasks.RemapJar>("reobfJar").flatMap { it.outputJar })
    }
}