Skip to content

Instantly share code, notes, and snippets.

@sya-ri
Created April 29, 2020 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sya-ri/974ad5bbb296e85807ff714cc71750bb to your computer and use it in GitHub Desktop.
Save sya-ri/974ad5bbb296e85807ff714cc71750bb to your computer and use it in GitHub Desktop.
プロジェクトのテンプレートです
// ここから下を元のと入れ替える (plugins, groupId, versionはそのままでいい)
repositories {
mavenCentral()
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots"
}
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
package グループID
import org.bukkit.plugin.java.JavaPlugin
class Main: JavaPlugin() {
override fun onEnable() {
}
}
name: プラグイン名
version: "1.0"
api-version: "1.15"
main: グループID
author: 作者
build.gradle は 書き換え
plugin.yml は src/main/resources に作成
Main.kt は src/main/kotlin/グループID に作成
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment