Skip to content

Commit

Permalink
Generate plugin.yml dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
dlsf committed Jul 17, 2024
1 parent a5b669b commit 3a37368
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 {
// "Replace" the build task with the shadowJar task (probably bad but who cares)
jar {
Expand Down Expand Up @@ -66,16 +92,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 3a37368

Please sign in to comment.