mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-22 21:41:28 +01:00
Switch to kotlin completely & reset versioning
This commit is contained in:
parent
c2a33fb9cd
commit
41f7eaf960
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
@ -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" }
|
||||
vault-api = { module = "com.github.MilkBowl:VaultAPI", version.ref = "vault-api" }
|
@ -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
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.badbones69.crazyauctions.api
|
||||
|
||||
class CrazyManager {
|
||||
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.badbones69.crazyauctions.api
|
||||
|
||||
class FileManager {
|
||||
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.badbones69.crazyauctions.commands
|
||||
|
||||
class BaseCommand {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user