Includes the already-applied package.json fix (build/build:dev/generate-index/serve now invoke @revenge-mod/plugin-cli via bun directly, bypassing its broken node-shebang delegation that crashed both bun run build and Gradle's packageAllPlugins).
30 lines
908 B
Kotlin
30 lines
908 B
Kotlin
import java.io.File
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
// Xposed API (provided by the framework at runtime).
|
|
maven(url = "https://api.xposed.info/")
|
|
// The Revenge plugin API, published locally from the revenge-xposed repo via
|
|
// `./gradlew :api:publishToMavenLocal`.
|
|
mavenLocal()
|
|
}
|
|
}
|
|
|
|
rootProject.name = "revenge-plugin-template"
|
|
|
|
// Each `plugins/<name>/` folder with Kotlin sources (`src/main`) is a native plugin module.
|
|
// Plugins without `src/main` are JS-only and are packaged without a Gradle project.
|
|
file("plugins").listFiles()
|
|
?.filter { it.isDirectory && File(it, "src/main").isDirectory }
|
|
?.sortedBy { it.name }
|
|
?.forEach { dir -> include(":plugins:${dir.name}") }
|