Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Building the plugins with IntelliJ IDEA

Ben Riggs edited this page Jun 29, 2020 · 20 revisions

OpenOSRS Plugins

This guide requires you to have built the OpenOSRS Client already, if not, please follow this guide: Building with IntelliJ-IDEA

Warning: This guide is not setup to be used with GitHub as I don't personally use it, if someone wishes to edit the guide to please feel free to do so.

building the plugins via your project.

amend your client build args to have the following:

publishToMavenLocal :runelite-client:publishToMavenLocal :runelite-api:publishToMavenLocal :http-api:publishToMavenLocal

run the client build.

once completed, close project, import plugins project https://github.com/open-osrs/plugins

close project, open up client project.

right hand side of intellij, click "Gradle" then click the +

navigate to your plugins project folder, and select build.gradle.kts

this will import the gradle project into your current project.

amend build.gradle.kts

withType<Jar> {
            doLast {
                copy {
                    from("./build/libs/")
                    into("../release/")
                }
            }
        }

change into("../release/") to into("EXTERNAL MANAGER DIRECTORY"), for instance:

withType<Jar> {
            doLast {
                copy {
                    from("./build/libs/")
                    into(System.getProperty("user.home") + "/.runelite/externalmanager")
                }
            }
        }

in your gradle project, click OpenOSRS Plugins, Tasks, Build, then right click "build" and click Run 'plugins [build]'

this will build all plugins, and export them into the external manager directory.

when you update your project, it will auto-update the plugins project also.