Update build script

This commit is contained in:
Ryder Belserion 2025-11-15 16:26:39 -05:00
parent da85bfa7f7
commit 7508cdca33
No known key found for this signature in database
14 changed files with 339 additions and 198 deletions

View File

@ -2,7 +2,7 @@ plugins {
alias(libs.plugins.fix.javadoc)
`maven-publish`
`config-paper`
`paper-plugin`
}
project.group = "us.crazycrew.crazyauctions"

View File

@ -1,73 +1,61 @@
plugins {
alias(libs.plugins.minotaur)
alias(libs.plugins.feather)
alias(libs.plugins.hangar)
import utils.convertList
import utils.updateMarkdown
`config-java`
plugins {
id("modrinth-plugin")
id("hangar-plugin")
`java-plugin`
}
val git = feather.getGit()
val commitHash: String = git.getCurrentCommitHash().subSequence(0, 7).toString()
val isSnapshot: Boolean = git.getCurrentBranch() == "dev"
val content: String = if (isSnapshot) "[$commitHash](https://github.com/Crazy-Crew/${rootProject.name}/commit/$commitHash) ${git.getCurrentCommit()}" else rootProject.file("changelog.md").readText(Charsets.UTF_8)
val minecraft = libs.versions.minecraft.get()
val versions = listOf(minecraft)
allprojects {
apply(plugin = "java-library")
}
rootProject.description = "Auction off your items in style!"
rootProject.version = if (isSnapshot) "$minecraft-$commitHash" else libs.versions.crazyauctions.get()
rootProject.group = "com.badbones69.crazyauctions"
tasks {
withType<Jar> {
subprojects {
dependsOn(project.tasks.build)
}
// get subproject's built jars
val jars = subprojects.map { zipTree(it.tasks.jar.get().archiveFile.get().asFile) }
// merge them into main jar (except their manifests)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(jars) {
exclude("META-INF/MANIFEST.MF")
}
// put behind an action because files don't exist at configuration time
doFirst {
// merge all subproject's manifests into main manifest
jars.forEach { jar ->
jar.matching { include("META-INF/MANIFEST.MF") }
.files.forEach { file ->
manifest.from(file)
}
}
}
}
}
val releaseType = rootProject.ext.get("release_type").toString()
val color = rootProject.property("${releaseType.lowercase()}_color").toString()
val isRelease = releaseType.equals("release", true)
val isAlpha = releaseType.equals("alpha", true)
feather {
rootDirectory = rootProject.rootDir.toPath()
val data = git.getGithubCommit("Crazy-Crew/${rootProject.name}")
val data = git.getGithubCommit("${rootProject.property("repository_owner")}/${rootProject.name}")
val user = data.user
discord {
webhook {
group(rootProject.name.lowercase())
task("dev-build")
if (System.getenv("CA_WEBHOOK") != null) {
post(System.getenv("CA_WEBHOOK"))
}
username("Ryder Belserion")
avatar("https://github.com/ryderbelserion.png")
embeds {
embed {
color("#ffa347")
title("A new dev version of ${rootProject.name} is ready!")
fields {
field(
"Version ${rootProject.version}",
listOf(
"*Click below to download!*",
"<:modrinth:1115307870473420800> [Modrinth](https://modrinth.com/plugin/${rootProject.name.lowercase()}/version/${rootProject.version})",
"<:hangar:1139326635313733652> [Hangar](https://hangar.papermc.io/CrazyCrew/${rootProject.name.lowercase()}/versions/${rootProject.version})"
).convertList()
)
field(
":bug: Report Bugs",
"https://github.com/Crazy-Crew/${rootProject.name}/issues"
)
field(
":hammer: Changelog",
content
)
}
}
}
}
webhook {
group(rootProject.name.lowercase())
task("release-build")
@ -76,17 +64,25 @@ feather {
post(System.getenv("BUILD_WEBHOOK"))
}
username(user.getName())
if (isRelease) {
username(user.getName())
avatar(user.avatar)
avatar(user.avatar)
} else {
username(rootProject.property("author_name").toString())
content("<@&929463450214735912>")
avatar(rootProject.property("author_avatar").toString())
}
embeds {
embed {
color("#1bd96a")
color(color)
title("A new release version of ${rootProject.name} is ready!")
title("A new $releaseType version of ${rootProject.name} is ready!")
if (isRelease) {
content("<@&${rootProject.property("discord_role_id").toString()}>")
}
fields {
field(
@ -94,92 +90,50 @@ feather {
listOf(
"*Click below to download!*",
"<:modrinth:1115307870473420800> [Modrinth](https://modrinth.com/plugin/${rootProject.name.lowercase()}/version/${rootProject.version})",
"<:hangar:1139326635313733652> [Hangar](https://hangar.papermc.io/CrazyCrew/${rootProject.name.lowercase()}/versions/${rootProject.version})"
"<:hangar:1139326635313733652> [Hangar](https://hangar.papermc.io/${rootProject.property("repository_owner").toString().replace("-", "")}/${rootProject.name.lowercase()}/versions/${rootProject.version})"
).convertList()
)
field(
":bug: Report Bugs",
"https://github.com/Crazy-Crew/${rootProject.name}/issues"
"https://github.com/${rootProject.property("repository_owner")}/${rootProject.name}/issues"
)
field(
":hammer: Changelog",
"[Click](https://modrinth.com/plugin/${rootProject.name.lowercase()}/version/${rootProject.version})"
rootProject.ext.get("mc_changelog").toString().updateMarkdown()
)
}
}
}
}
}
}
fun List<String>.convertList(): String {
val builder = StringBuilder(size)
webhook {
group(rootProject.name.lowercase())
task("failed-build")
forEach {
builder.append(it).append("\n")
}
if (System.getenv("BUILD_WEBHOOK") != null) {
post(System.getenv("BUILD_WEBHOOK"))
}
return builder.toString()
}
username(rootProject.property("mascot_name").toString())
modrinth {
token = System.getenv("MODRINTH_TOKEN")
avatar(rootProject.property("mascot_avatar").toString())
projectId = rootProject.name
embeds {
embed {
color(rootProject.property("failed_color").toString())
versionName = "${rootProject.version}"
versionNumber = "${rootProject.version}"
versionType = if (isSnapshot) "beta" else "release"
title("Oh no! It failed!")
changelog = content
thumbnail("https://raw.githubusercontent.com/ryderbelserion/Branding/refs/heads/main/booze.jpg")
gameVersions.addAll(versions)
uploadFile = rootProject.layout.buildDirectory.file("libs/${rootProject.name}-${rootProject.version}.jar").get()
loaders.addAll(listOf("paper", "folia", "purpur"))
syncBodyFrom = rootProject.file("description.md").readText(Charsets.UTF_8)
autoAddDependsOn = false
detectLoaders = false
}
hangarPublish {
publications.register("plugin") {
apiKey.set(System.getenv("HANGAR_KEY"))
id.set(rootProject.name)
version.set("${rootProject.version}")
channel.set(if (isSnapshot) "Beta" else "Release")
changelog.set(content)
platforms {
paper {
jar = rootProject.layout.buildDirectory.file("${rootProject.name}-${rootProject.version}.jar").get()
platformVersions.set(versions)
dependencies {
hangar("PlaceholderAPI") {
required = false
}
url("ItemsAdder", "https://polymart.org/product/1851/itemsadder") {
required = false
}
url("Oraxen", "https://polymart.org/product/629/oraxen") {
required = false
}
url("Nexo", "https://polymart.org/resource/nexo.6901") {
required = false
fields {
field(
"The build versioned ${rootProject.version} for project ${rootProject.name} failed.",
"The developer is likely already aware, he is just getting drunk.",
inline = true
)
}
}
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.gradleup.shadow")
id("com.ryderbelserion.feather.core")
`java-library`
}
@ -25,12 +25,6 @@ java {
}
tasks {
shadowJar {
archiveClassifier.set("")
exclude("META-INF/**")
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(21)
@ -46,12 +40,12 @@ tasks {
"version" to rootProject.version,
"description" to rootProject.description.toString(),
"minecraft" to libs.findVersion("minecraft").get(),
"website" to "https://github.com/Crazy-Crew/${rootProject.name}",
"website" to "https://github.com/${rootProject.property("repository_owner")}/${rootProject.name}",
"group" to project.group
)
with(copySpec {
include("*plugin.yml")
include("*paper-plugin.yml", "*plugin.yml")
from("src/main/resources") {
expand(inputs.properties)

View File

@ -1,7 +1,8 @@
plugins {
id("io.papermc.paperweight.userdev")
id("xyz.jpenilla.run-paper")
id("config-java")
id("shadow-plugin")
}
val libs = extensions.getByType(VersionCatalogsExtension::class.java).named("libs")

View File

@ -0,0 +1,49 @@
import gradle.kotlin.dsl.accessors._bc702d41505d332776c95ae061891e6e.ext
import io.papermc.hangarpublishplugin.model.Platforms
import org.gradle.kotlin.dsl.support.uppercaseFirstChar
plugins {
id("io.papermc.hangar-publish-plugin")
id("shared-plugin")
}
hangarPublish {
publications.register("plugin") {
apiKey.set(System.getenv("HANGAR_KEY"))
id.set("${rootProject.property("project_id")}")
version.set("${rootProject.version}")
changelog.set(rootProject.ext.get("mc_changelog").toString())
channel.set(rootProject.ext.get("release_type").toString().uppercaseFirstChar())
platforms {
register(Platforms.PAPER) {
jar.set(tasks.named<Jar>("jar").flatMap { it.archiveFile })
platformVersions.set(rootProject.property("project_versions").toString().split(",").map { it.trim() })
dependencies {
hangar("PlaceholderAPI") {
required = false
}
url("ItemsAdder", "https://polymart.org/product/1851/itemsadder") {
required = false
}
url("Oraxen", "https://polymart.org/product/629/oraxen") {
required = false
}
url("Nexo", "https://polymart.org/resource/nexo.6901") {
required = false
}
}
}
}
}
}

View File

@ -0,0 +1,32 @@
plugins {
id("com.modrinth.minotaur")
id("shared-plugin")
}
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "${rootProject.property("project_id")}"
versionName = rootProject.ext.get("version_name").toString()
versionNumber = "${rootProject.version}"
versionType = rootProject.ext.get("release_type").toString()
changelog = rootProject.ext.get("mc_changelog").toString()
gameVersions.addAll(rootProject.property("project_versions").toString().split(",").map { it.trim() })
uploadFile.set(tasks.named<Jar>("jar"))
loaders.addAll(rootProject.property("project_platforms").toString().split(",").map { it.trim() })
syncBodyFrom = rootProject.file("README.md").readText(Charsets.UTF_8)
autoAddDependsOn = false
detectLoaders = false
dependencies {
optional.project("PlaceholderAPI")
}
}

View File

@ -0,0 +1,12 @@
plugins {
id("com.gradleup.shadow")
id("java-plugin")
}
tasks {
shadowJar {
archiveClassifier.set("")
exclude("META-INF/**")
}
}

View File

@ -0,0 +1,27 @@
plugins {
id("com.ryderbelserion.feather.core")
id("java-plugin") apply false
}
val libs = extensions.getByType(VersionCatalogsExtension::class.java).named("libs")
val git = feather.getGit()
val isBeta: Boolean = git.getCurrentBranch() == rootProject.property("beta_branch").toString()
val isAlpha: Boolean = git.getCurrentBranch() == rootProject.property("alpha_branch").toString()
val commitHash: String = git.getCurrentCommitHash().subSequence(0, 7).toString()
val content: String = if (isBeta) "[$commitHash](https://github.com/${rootProject.property("repository_owner")}/${rootProject.name}/commit/$commitHash) ${git.getCurrentCommit()}" else rootProject.file("changelog.md").readText(Charsets.UTF_8)
val minecraft = libs.findVersion("minecraft").get()
rootProject.description = rootProject.property("project_description").toString()
rootProject.version = if (isBeta) "$minecraft-$commitHash" else if (isAlpha) "${rootProject.property("plugin_version")}-SNAPSHOT" else rootProject.property("plugin_version").toString()
rootProject.group = rootProject.property("project_group").toString()
rootProject.ext {
set("version_name", if (isBeta) "${rootProject.version}" else "${rootProject.name} ${rootProject.version}")
set("release_type", if (isBeta) "beta" else if (isAlpha) "alpha" else "release")
set("mc_changelog", content)
}

View File

@ -0,0 +1,29 @@
package utils
fun String.updateMarkdown(): String {
val list = split("\n")
val builder = StringBuilder(list.size)
list.forEach {
if (it.contains("##")) {
val text = it.replace("## ", "")
builder.append("**${text}**")
} else {
builder.append(it)
}
}
return builder.toString()
}
fun List<String>.convertList(): String {
val builder = StringBuilder(size)
forEach {
builder.append(it).append("\n")
}
return builder.toString()
}

View File

@ -2,59 +2,40 @@
![CrazyAuctions](https://raw.githubusercontent.com/Crazy-Crew/Branding/main/crazyauctions/banner/webp/banner.webp)
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![CodeFactor](https://www.codefactor.io/repository/github/crazy-crew/crazyauctions/badge)](https://www.codefactor.io/repository/github/crazy-crew/crazyauctions)
[![][discord-shield]][discord-url]
[![][contributors-shield]][contributors-url]
[![][forks-shield]][forks-url]
[![][stars-shield]][stars-url]
[![][issues-shield]][issues-url]
[![][license-shield]][license-url]
[![][codefactor-shield]][codefactor-url]
<big>**Auction off your items in style!**</big>
</div></center>
<big>**Quick Links**</big><br>
[Request Features](https://github.com/Crazy-Crew/CrazyAuctions/issues)<br>
[Documentation](https://docs.crazycrew.us/docs/category/crazyauctions)<br>
[Developer API](https://docs.crazycrew.us/docs/plugins/crazyauctions/guides/api/intro)<br>
[Report Bugs](https://github.com/Crazy-Crew/CrazyAuctions/issues)<br>
[Trello Board](https://trello.com/b/B9exh23d/crazyauctions)
## Installation
1) Download the update from modrinth/hangar for your version of Minecraft.
1) Note, Any version that is not the newest version of Minecraft is not supported.
2) You must be using at least https://papermc.io
3) The file you downloaded goes in the `plugins` folder.
4) Restart the server.
5) Run /crazyauctions
6) View the documentation @ https://docs.crazycrew.us/docs/plugins/crazyauctions
<big>**Supported Platforms**</big><br>
[![paper software](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/compact-minimal/supported/paper_vector.svg)](https://papermc.io/)
[![purpur software](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/compact-minimal/supported/purpur_vector.svg)](https://purpurmc.org/)
## Useful Information
Please make sure to [read our documentation](https://docs.crazycrew.us/docs/plugins/crazyauctions) thoroughly, and if you notice something is lacking. You can create a pull request to update the information for that page by hitting "Edit this page" at the bottom.
<big>**Initial Plugin Setup**</big><br>
CrazyAuctions as first install will come with a set of default files such as `config.yml`, `messages.yml`
You can simply edit these files, and configure the looks and settings then do `/crazyauctions reload`<br>
All support for the plugin is provided on [Discord](https://discord.gg/badbones-s-live-chat-182615261403283459). If a question cannot be answered on the wiki, The next best place is to ask it in the Discord.
![Features Banner](https://raw.githubusercontent.com/Crazy-Crew/Branding/main/crazyauctions/banner/webp/features.webp)<br>
**Selling/buying/bidding items with ease.**<br>
**Easy to use configurations.**<br>
**Max/min bidding/buying.**<br>
**Customizable category selector.**<br>
**Blacklist items you don't want to be auctioned off.**<br>
**Cancel auctions & retrieve the item afterward.**<br>
**And much more!**<br>
If you have a bug report you'd like to report. Please create an [issue on Github](https://github.com/Crazy-Crew/CrazyAuctions/issues/new?assignees=ryderbelserion&labels=type%3A+bug&projects=&template=bugs.yml).
![Support Banner](https://raw.githubusercontent.com/Crazy-Crew/Branding/main/crazyauctions/banner/webp/support.webp)<br>
Are you confused about something? Hop by the Discord and you might just get an answer!<br>
Please head to [crazy-auctions](https://discord.com/channels/182615261403283459/1178545378564509786) with your question and do not cross post.<br>
If you have a feature request, Please create an [issue on Github](https://github.com/Crazy-Crew/CrazyAuctions/issues/new?assignees=ryderbelserion&labels=type%3A+feature+request&projects=&template=features.yml).
<details>
<summary>Support Checklist</summary>
## Data Collection
We collect anonymous statistics on how the plugin is used at https://bstats.org/plugin/bukkit/CrazyAuctions/4514 and is visible to the public.
If you do not want this anonymous data sent, You currently have to go to the `bStats` folder, and set that to false.
Please check to make sure that your question wasn't asked before, You can use `Ctrl+F` on Discord to look for past conversations.<br>
Describe your issue in detail, Don't just make it a bread crumb trail that has to be questioned out of you.<br>
Plugin Version i.e. `CrazyAuctions 3.3` **LATEST DOES NOT COUNT**<br>
Server Version & Server Type i.e. `Paper 1.21.1` or `Purpur 1.21.1` **LATEST DOES NOT COUNT**<br>
Send any console errors or files you have through https://mclo.gs/ - (We don't own the website, You have to copy the link and send it.)<br>
</details>
<!--[![Discord](https://discord.com/api/guilds/182615261403283459/widget.png?style=banner2)](https://discord.gg/badbones-s-live-chat-182615261403283459)<br>-->
[![Discord Invite Button](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/social/discord-plural_vector.svg)](https://discord.gg/badbones-s-live-chat-182615261403283459)
</div>
![CrazyAuctions Statistics](https://bstats.org/signatures/bukkit/CrazyAuctions.svg)
</center>
## Apex Hosting (ad)
We're sponsored by Apex Hosting, Click [here](https://billing.apexminecrafthosting.com/aff.php?aff=5511) to get 25% off your first purchase with the code `APEX25` at checkout for Minecraft servers, Satisfactory servers, and more.
[contributors-shield]: https://img.shields.io/github/contributors/Crazy-Crew/CrazyAuctions.svg?style=flat&logo=appveyor
[contributors-url]: https://github.com/Crazy-Crew/CrazyAuctions/graphs/contributors
@ -65,4 +46,8 @@ Send any console errors or files you have through https://mclo.gs/ - (We don't o
[issues-shield]: https://img.shields.io/github/issues/Crazy-Crew/CrazyAuctions.svg?style=flat&logo=appveyor
[issues-url]: https://github.com/Crazy-Crew/CrazyAuctions/issues
[license-shield]: https://img.shields.io/github/license/Crazy-Crew/CrazyAuctions.svg?style=flat&logo=appveyor
[license-url]: https://github.com/Crazy-Crew/CrazyAuctions/blob/main/LICENSE
[license-url]: https://github.com/Crazy-Crew/CrazyAuctions/blob/main/LICENSE
[discord-shield]: https://img.shields.io/discord/182615261403283459.svg?label=discord&logo=discord
[discord-url]: https://discord.gg/badbones-s-live-chat-182615261403283459
[codefactor-shield]: https://www.codefactor.io/repository/github/crazy-crew/crazyauctions/badge
[codefactor-url]: https://www.codefactor.io/repository/github/crazy-crew/crazyauctions

View File

@ -1,3 +1,44 @@
# suppress inspection "SpellCheckingInspection" for whole file
org.gradle.jvmargs = -Xmx3G
org.gradle.daemon = false
org.gradle.parallel = false
org.gradle.parallel = false
# The GitHub repo/organization
repository_owner = Crazy-Crew
# Author details
author_name = Ryder Belserion
author_avatar = https://github.com/ryderbelserion.png
# Masocot details
mascot_name = Beidou
mascot_avatar = https://raw.githubusercontent.com/ryderbelserion/Branding/refs/heads/main/beidou/christmas/emojis/padoru.png
# The version of the plugin
plugin_version = 1.7.0
# The api version
api_version = 0.1.0
# The beta branch
beta_branch = dev
# The color for beta builds
beta_color = #ffa347
# The alpha branch
alpha_branch = alpha
# The color for the alpha builds
alpha_color = #ff496e
# The color for release builds
release_color = #1bd96a
# The color when a build fails
failed_color = #ff000d
# The role id to ping when publishing releases
discord_role_id = 929463748438138880
project_description = Auction off your items in style!
project_group = com.badbones69.crazyauctions
project_platforms = paper,folia,purpur
project_versions = 1.21.10,1.21.8
project_id = CrazyAuctions

View File

@ -6,15 +6,15 @@ paper = "1.21.8-R0.1-SNAPSHOT" # https://github.com/PaperMC/Paper
## Minecraft
minecraft = "1.21.8" # https://minecraft.net
## CrazyAuctions
crazyauctions = "1.7.0" # Plugin Version
## Kyori
adventure = "4.24.0" # https://github.com/KyoriPowered/adventure
## Plugin API
headdatabaseapi = "1.3.1" # https://github.com/Arcaniax-Development/HeadDatabase-API
placeholderapi = "2.11.6" # https://github.com/placeholderapi
itemsadder = "4.0.10" # https://github.com/ItemsAdder
oraxen = "1.190.0" # https://github.com/oraxen
vault = "1.7.1"
oraxen = "1.194.1" # https://github.com/oraxen
vault = "1.7.1" # https://github.com/MilkBowl/Vault
nexo = "1.6.0" # https://github.com/Nexo-MC
## Other
@ -36,20 +36,20 @@ vital-paper = "1.0.6"
[plugins]
# https://github.com/mfnalex/gradle-fix-javadoc-plugin
fix-javadoc = { id = "com.jeff-media.fix-javadoc-plugin", version.ref = "fix-javadoc" }
# https://github.com/ryderbelserion/Feather
feather = { id = "com.ryderbelserion.feather.core", version.ref = "feather" }
# https://github.com/HangarMC/hangar-publish-plugin
hangar = { id = "io.papermc.hangar-publish-plugin", version.ref = "hangar" }
# https://github.com/modrinth/minotaur
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" }
[libraries]
# https://minecraft.net
minecraft = { group = "com.mojang", name = "minecraft", version.ref = "minecraft" }
# https://github.com/PaperMC/paperweight
paperweight = { module = "io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin", version.ref = "paperweight" }
# https://github.com/ryderbelserion/Feather
feather = { module = "com.ryderbelserion.feather.core:com.ryderbelserion.feather.core.gradle.plugin", version.ref = "feather" }
# https://github.com/HangarMC/hangar-publish-plugin
hangar = { module = "io.papermc.hangar-publish-plugin:io.papermc.hangar-publish-plugin.gradle.plugin", version.ref = "hangar" }
# https://github.com/modrinth/minotaur
minotaur = { module = "com.modrinth.minotaur:com.modrinth.minotaur.gradle.plugin", version.ref = "minotaur" }
# https://github.com/GradleUp/shadow
shadow = { module = "com.gradleup.shadow:shadow-gradle-plugin", version.ref = "shadow" }
@ -62,12 +62,19 @@ headdatabaseapi = { module = "com.arcaniax:HeadDatabase-API", version.ref = "hea
placeholderapi = { module = "me.clip:placeholderapi", version.ref = "placeholderapi" }
# https://github.com/ItemsAdder
itemsadder = { module = "dev.lone:api-itemsadder", version.ref = "itemsadder" }
# https://github.com/MilkBowl/Vault
vault = { module = "com.github.MilkBowl:VaultAPI", version.ref = "vault" }
# https://github.com/oraxen
oraxen = { module = "io.th0rgal:oraxen", version.ref = "oraxen" }
# https://github.com/Nexo-MC
nexo = { module = "com.nexomc:nexo", version.ref = "nexo" }
# https://github.com/KyoriPowered/adventure
kyori-legacy = { module = "net.kyori:adventure-text-serializer-legacy", version.ref = "adventure" }
kyori-logger = { module = "net.kyori:adventure-text-logger-slf4j", version.ref = "adventure" }
kyori-text = { module = "net.kyori:adventure-text-minimessage", version.ref = "adventure" }
kyori-api = { module = "net.kyori:adventure-api", version.ref = "adventure" }
# https://github.com/TriumphTeam/triumph-cmds
triumph-cmds = { module = "dev.triumphteam:triumph-cmd-bukkit", version.ref = "triumph-cmds" }
@ -81,6 +88,13 @@ fusion-paper = { module = "com.ryderbelserion.fusion:fusion-paper", version.ref
metrics = { module = "org.bstats:bstats-bukkit", version.ref = "bStats" }
[bundles]
adventure = [
"kyori-legacy",
#"kyori-logger",
"kyori-text",
"kyori-api"
]
shared = [
"headdatabaseapi",
"placeholderapi",
@ -91,6 +105,9 @@ shared = [
]
build = [
"minotaur",
"feather",
"hangar",
"shadow"
]

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View File

@ -1,5 +1,5 @@
plugins {
`config-paper`
`paper-plugin`
}
project.group = "${rootProject.group}"