mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Use resource-factory instead of processResources for fabric & velocity meta
This commit is contained in:
7 files changed
+51
-84
No files matched your search
@@ -3,6 +3,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
plugins {
|
||||
id("carbon.shadow-platform")
|
||||
id("xyz.jpenilla.run-velocity")
|
||||
alias(libs.plugins.resource.factory.velocity.convention)
|
||||
}
|
||||
|
||||
val bstats: Configuration by configurations.creating
|
||||
@@ -24,6 +25,19 @@ dependencies {
|
||||
compileOnly("javax.inject:javax.inject:1")
|
||||
}
|
||||
|
||||
velocityPluginJson {
|
||||
id = rootProject.name.lowercase()
|
||||
main = "net.draycia.carbon.velocity.CarbonVelocityBootstrap"
|
||||
name = rootProject.name
|
||||
version = project.version.toString()
|
||||
description = project.description
|
||||
url = GITHUB_REPO_URL
|
||||
authors = listOf("Draycia", "jmp")
|
||||
dependency("luckperms", false)
|
||||
dependency("miniplaceholders", true)
|
||||
dependency("signedvelocity", true)
|
||||
}
|
||||
|
||||
gremlin {
|
||||
defaultJarRelocatorDependencies.set(true)
|
||||
}
|
||||
@@ -65,15 +79,6 @@ tasks {
|
||||
github("MiniPlaceholders", "MiniPlaceholders", libs.versions.miniplaceholders.get(), "MiniPlaceholders-Velocity-${libs.versions.miniplaceholders.get()}.jar")
|
||||
}
|
||||
}
|
||||
processResources {
|
||||
replace("velocity-plugin.json", mapOf(
|
||||
"id" to rootProject.name.lowercase(),
|
||||
"name" to rootProject.name,
|
||||
"version" to project.version,
|
||||
"description" to project.description,
|
||||
"url" to GITHUB_REPO_URL
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
publishMods.modrinth {
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"id": "${id}",
|
||||
"name": "${name}",
|
||||
"version": "${version}",
|
||||
"description": "${description}",
|
||||
"url": "${url}",
|
||||
"authors": [
|
||||
"Draycia",
|
||||
"jmp"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"id": "luckperms",
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"id": "miniplaceholders",
|
||||
"optional": true
|
||||
},
|
||||
{
|
||||
"id": "signedvelocity",
|
||||
"optional": true
|
||||
}
|
||||
],
|
||||
"main": "net.draycia.carbon.velocity.CarbonVelocityBootstrap"
|
||||
}
|
||||
Reference in new issue
Block a user