Skip to content

Commit

Permalink
Generate plugin.yml dynamically (#876)
Browse files Browse the repository at this point in the history
Co-authored-by: Peaches_MLG <[email protected]>
  • Loading branch information
dlsf and PeachesMLG authored Jul 21, 2024
1 parent 70520af commit 3a6b8d1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 32 deletions.
38 changes: 27 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
}

group = "com.iridium"
version = "4.1.0"
description = "IridiumSkyblock"
description = "Skyblock Redefined"

repositories {
mavenCentral()
Expand Down Expand Up @@ -37,6 +38,31 @@ dependencies {
annotationProcessor("org.projectlombok:lombok:1.18.34")
}

bukkit {
main = "com.iridium.iridiumskyblock.IridiumSkyblock"
apiVersion = "1.13"
author = "Peaches_MLG"

loadBefore = listOf("Multiverse-Core")
depend = listOf("Vault")
softDepend = listOf(
"MVdWPlaceholderAPI",
"PlaceholderAPI",
"Essentials",
"EssentialsSpawn",
"RoseStacker",
"WorldEdit",
"ObsidianStacker"
)

commands {
register("iridiumskyblock") {
description = "Main plugin command"
aliases = listOf("is", "island")
}
}
}

tasks {
// Add the shadowJar task to the build task
build {
Expand Down Expand Up @@ -68,16 +94,6 @@ tasks {
options.encoding = "UTF-8"
}

// Process Placeholders for the plugin.yml
processResources {
filesMatching("**/plugin.yml") {
expand(rootProject.project.properties)
}

// Always re-run this task
outputs.upToDateWhen { false }
}

compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
Expand Down
21 changes: 0 additions & 21 deletions src/main/resources/plugin.yml

This file was deleted.

0 comments on commit 3a6b8d1

Please sign in to comment.