diff --git a/build.gradle.kts b/build.gradle.kts index 454b621..02b65ea 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,52 +1,32 @@ plugins { - java + kotlin("jvm") version "1.7.20" id("com.github.johnrengelman.shadow") version "7.1.2" } val buildNumber: String? = System.getenv("BUILD_NUMBER") -val jenkinsVersion = "1.2.18-b$buildNumber" +val jenkinsVersion = "0.0.1-b$buildNumber" group = "com.badbones69.crazyauctions" -version = "1.2.18" -description = "A simple auctions plugin where you can sell your items and bid on other items! " +version = "0.0.1" +description = "A simple auctions plugin where you can sell your items and bid on other items!" repositories { + mavenCentral() + /** * Paper Team */ maven("https://repo.papermc.io/repository/maven-public/") - - /** - * NBT Team - */ - maven("https://repo.codemc.org/repository/maven-public/") - - /** - * Everything else we need. - */ - maven("https://jitpack.io/") - - mavenCentral() } dependencies { - implementation(libs.bukkit.bstats) - - implementation(libs.nbt.api) - - compileOnly(libs.reserve.api) - - compileOnly(libs.vault.api) + implementation(kotlin("stdlib", "1.7.20")) compileOnly(libs.paper) } -java { - toolchain.languageVersion.set(JavaLanguageVersion.of(17)) -} - tasks { shadowJar { if (buildNumber != null) { @@ -55,26 +35,16 @@ tasks { archiveFileName.set("${rootProject.name}-[v${rootProject.version}].jar") } - listOf( - "de.tr7zw", - "org.bstats" - ).forEach { - relocate(it, "${rootProject.group}.plugin.lib.$it") - } + //listOf( + // "" + //).onEach { + // relocate(it, "${group}.libs.$it") + //} } - compileJava { - options.release.set(17) - } - - processResources { - filesMatching("plugin.yml") { - expand( - "name" to rootProject.name, - "group" to rootProject.group, - "version" to rootProject.version, - "description" to rootProject.description - ) + compileKotlin { + kotlinOptions { + jvmTarget = "17" } } } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4f9523f..f35d721 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,9 +10,7 @@ bukkit-bstats = "3.0.0" placeholder-api = "2.11.2" # Misc Libraries -nbt-api = "2.10.0" vault-api = "1.7" -reserve-api = "0.1.5.0" [libraries] @@ -23,8 +21,4 @@ paper = { module = "io.papermc.paper:paper-api", version.ref = "paper" } bukkit-bstats = { module = "org.bstats:bstats-bukkit", version.ref = "bukkit-bstats" } # Misc Libraries -vault-api = { module = "com.github.MilkBowl:VaultAPI", version.ref = "vault-api" } - -nbt-api = { module = "de.tr7zw:nbt-data-api", version.ref = "nbt-api" } - -reserve-api = { module = "net.tnemc:Reserve", version.ref = "reserve-api" } \ No newline at end of file +vault-api = { module = "com.github.MilkBowl:VaultAPI", version.ref = "vault-api" } \ No newline at end of file diff --git a/src/main/kotlin/com/badbones69/crazyauctions/CrazyAuctions.kt b/src/main/kotlin/com/badbones69/crazyauctions/CrazyAuctions.kt new file mode 100644 index 0000000..71051f3 --- /dev/null +++ b/src/main/kotlin/com/badbones69/crazyauctions/CrazyAuctions.kt @@ -0,0 +1,18 @@ +package com.badbones69.crazyauctions + +import org.bukkit.plugin.java.JavaPlugin + +class CrazyAuctions : JavaPlugin() { + + private val plugin = this; + + override fun onEnable() { + + } + + override fun onDisable() { + + } + + fun getPlugin() = plugin +} \ No newline at end of file diff --git a/src/main/kotlin/com/badbones69/crazyauctions/api/CrazyManager.kt b/src/main/kotlin/com/badbones69/crazyauctions/api/CrazyManager.kt new file mode 100644 index 0000000..f44f6d3 --- /dev/null +++ b/src/main/kotlin/com/badbones69/crazyauctions/api/CrazyManager.kt @@ -0,0 +1,5 @@ +package com.badbones69.crazyauctions.api + +class CrazyManager { + +} \ No newline at end of file diff --git a/src/main/kotlin/com/badbones69/crazyauctions/api/FileManager.kt b/src/main/kotlin/com/badbones69/crazyauctions/api/FileManager.kt new file mode 100644 index 0000000..de3de28 --- /dev/null +++ b/src/main/kotlin/com/badbones69/crazyauctions/api/FileManager.kt @@ -0,0 +1,5 @@ +package com.badbones69.crazyauctions.api + +class FileManager { + +} \ No newline at end of file diff --git a/src/main/kotlin/com/badbones69/crazyauctions/commands/BaseCommand.kt b/src/main/kotlin/com/badbones69/crazyauctions/commands/BaseCommand.kt new file mode 100644 index 0000000..defae43 --- /dev/null +++ b/src/main/kotlin/com/badbones69/crazyauctions/commands/BaseCommand.kt @@ -0,0 +1,5 @@ +package com.badbones69.crazyauctions.commands + +class BaseCommand { + +} \ No newline at end of file