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
+27
-9
@@ -1,9 +1,11 @@
|
||||
import xyz.jpenilla.resourcefactory.fabric.Environment
|
||||
import java.util.function.Predicate
|
||||
import kotlin.io.path.invariantSeparatorsPathString
|
||||
|
||||
plugins {
|
||||
id("carbon.shadow-platform")
|
||||
id("quiet-fabric-loom")
|
||||
alias(libs.plugins.resource.factory.fabric.convention)
|
||||
}
|
||||
|
||||
val shade: Configuration by configurations.creating
|
||||
@@ -56,6 +58,31 @@ dependencies {
|
||||
runtimeDownload(libs.checkerQual)
|
||||
}
|
||||
|
||||
fabricModJson {
|
||||
id = rootProject.name.lowercase()
|
||||
name = rootProject.name
|
||||
version = project.version.toString()
|
||||
description = project.description
|
||||
author("Draycia")
|
||||
author("jmp")
|
||||
contact {
|
||||
homepage = GITHUB_REPO_URL
|
||||
sources = GITHUB_REPO_URL
|
||||
issues = "$GITHUB_REPO_URL/issues"
|
||||
}
|
||||
license("GPLv3")
|
||||
environment = Environment.ANY
|
||||
mainEntrypoint("net.draycia.carbon.fabric.CarbonFabricBootstrap")
|
||||
mixin("carbonchat.mixins.json")
|
||||
depends("fabricloader", ">=" + libs.versions.fabricLoader.get())
|
||||
depends("fabric-api", "*")
|
||||
depends("cloud", "*")
|
||||
depends("adventure-platform-fabric", "*")
|
||||
depends("minecraft", libs.versions.minecraft.get())
|
||||
depends("luckperms", ">=5.0.0")
|
||||
suggests("miniplaceholders", "*")
|
||||
}
|
||||
|
||||
carbonPlatform {
|
||||
productionJar = tasks.remapJar.flatMap { it.archiveFile }
|
||||
}
|
||||
@@ -73,15 +100,6 @@ tasks {
|
||||
relocateGuice()
|
||||
relocateDependency("org.checkerframework")
|
||||
}
|
||||
processResources {
|
||||
replace("fabric.mod.json", mapOf(
|
||||
"modId" to rootProject.name.lowercase(),
|
||||
"name" to rootProject.name,
|
||||
"version" to project.version,
|
||||
"description" to project.description,
|
||||
"github_url" to GITHUB_REPO_URL
|
||||
))
|
||||
}
|
||||
|
||||
runServer {
|
||||
dependsOn(shadowJar)
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "${modId}",
|
||||
"version": "${version}",
|
||||
"name": "${name}",
|
||||
"description": "${description}",
|
||||
"authors": [
|
||||
"Draycia",
|
||||
"jmp"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "${github_url}",
|
||||
"sources": "${github_url}",
|
||||
"issues": "${github_url}/issues"
|
||||
},
|
||||
"license": "GPLv3",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"net.draycia.carbon.fabric.CarbonFabricBootstrap"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"carbonchat.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.16.5",
|
||||
"fabric": "*",
|
||||
"cloud": "*",
|
||||
"adventure-platform-fabric": "*",
|
||||
"minecraft": ">=1.21 <=1.21.1",
|
||||
"luckperms": ">=5.0.0"
|
||||
},
|
||||
"suggests": {
|
||||
"miniplaceholders": "*"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user