Skip to content

Commit

Permalink
feat: example plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdm2883 committed Sep 30, 2024
1 parent 1cb6c85 commit d4099cd
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.gradleup.shadow)
}

dependencies {
compileOnly(libs.allaymc.api)
compileOnly(project(":plugin"))
}

kotlin {
jvmToolchain(21)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package vip.cdms.allaymc.kotlinx

import org.allaymc.api.plugin.Plugin

@Suppress("unused")
class KotlinxExamplePlugin : Plugin()
11 changes: 11 additions & 0 deletions example/src/main/resources/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"entrance": "vip.cdms.allaymc.kotlinx.KotlinxExamplePlugin",
"name": "KotlinxExamplePlugin",
"version": "0.1.0-alpha",
"dependencies": [
{
"name": "KotlinxPlugin",
"optional": false
}
]
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ dependencyResolutionManagement {

include(":core")
include(":plugin")
include(":example")

0 comments on commit d4099cd

Please sign in to comment.