Fix api artifacts getting remapped by consumers

This commit is contained in:
Kneelawk 2024-05-12 01:45:28 -07:00 committed by Jozufozu
parent 6719cbd431
commit 9c0f0e94f7
3 changed files with 34 additions and 1 deletions

View file

@ -75,7 +75,9 @@ open class PlatformExtension(val project: Project) {
source(commonSourceSet.allJava)
}
named<ProcessResources>(it.processResourcesTaskName).configure {
from(commonSourceSet.resources)
from(commonSourceSet.resources) {
exclude("fabric.mod.json")
}
}
}
}

View file

@ -0,0 +1,31 @@
{
"__comment": "This is to make sure api artifacts get remapped properly",
"schemaVersion": 1,
"id": "${mod_id}",
"version": "${mod_version}",
"name": "${mod_name}",
"description": "${mod_description}",
"authors": [
"Jozufozu",
"PepperCode1"
],
"contact": {
"homepage": "${mod_homepage}",
"sources": "${mod_sources}",
"issues": "${mod_issues}"
},
"license": "${mod_license}",
"icon": "logo.png",
"environment": "client",
"entrypoints": {
},
"mixins": [
],
"depends": {
"minecraft": "${minecraft_semver_version_range}",
"fabric-api": "${fabric_api_version_range}"
},
"breaks": {
"sodium": "<0.5.0"
}
}