mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 22:15:37 +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)
|
||||
|
||||
Reference in new issue
Block a user