Created
April 29, 2020 08:49
-
-
Save sya-ri/974ad5bbb296e85807ff714cc71750bb to your computer and use it in GitHub Desktop.
プロジェクトのテンプレートです
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ここから下を元のと入れ替える (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) } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package グループID | |
import org.bukkit.plugin.java.JavaPlugin | |
class Main: JavaPlugin() { | |
override fun onEnable() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: プラグイン名 | |
version: "1.0" | |
api-version: "1.15" | |
main: グループID | |
author: 作者 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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