A simple gradle plugin to make creating recaf plugins simpler.
Simple!
In your settings.gradle file put at the top
pluginManagement {
repositories {
mavenCentral()
maven { url "https://jitpack.io/" }
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id.equals("me.videogame.recaf")) {
useModule("com.github.videogame-player:recaf-development:${requested.version}")
}
}
}
}
and then in your build.gradle put in the plugins
block:
plugins {
id "me.videogame.recaf" version "1.2"
}
Head over here for an example of how to use this in a Recaf workspace.
Extension:
recaf {
mainClass = "com.example.MyPlugin" // Location the plugin use for recaf-runner (Required) (If not present running recaf WILL faiil)
addRecaf = true // Adds the Recaf dependency to the project (Not required) (Default value: true)
recafVersion = "2.18.3" // If you want to use a different version specify here (Not required)
}