1
0
mirror of https://github.com/chylex/Better-Controls.git synced 2025-04-21 06:15:46 +02:00

Update build.gradle and metadata files

This commit is contained in:
chylex 2021-12-13 19:32:45 +01:00
parent 0aed6282b4
commit 0814ddaedf
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
5 changed files with 13 additions and 9 deletions
Fabric
Forge/src/main/resources/META-INF
build.gradle.kts
src/main/resources

View File

@ -4,7 +4,7 @@ val fabricVersion: String by project
plugins {
idea
id("fabric-loom") version "0.9-SNAPSHOT"
id("fabric-loom") version "0.10-SNAPSHOT"
}
dependencies {

View File

@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"id": "bettercontrols",
"id": "${id}",
"name": "${name}",
"description": "${description}",
"version": "${version}",
@ -24,7 +24,7 @@
},
"mixins": [{
"config": "bettercontrols.mixins.json",
"config": "${id}.mixins.json",
"environment": "client"
}],

View File

@ -6,20 +6,20 @@ license = "${license}"
issueTrackerURL = "${issuesURL}"
[[mods]]
modId = "bettercontrols"
modId = "${id}"
version = "${version}"
displayName = "${name}"
description = "${description}"
logoFile = "icon.png"
[[dependencies.bettercontrols]]
[[dependencies.${id}]]
modId = "minecraft"
mandatory = true
versionRange = "[1.17.1,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.bettercontrols]]
[[dependencies.${id}]]
modId = "forge"
mandatory = true
versionRange = "[37,)"

View File

@ -33,6 +33,7 @@ idea {
module {
excludeDirs.add(file("gradle"))
excludeDirs.add(file("run"))
excludeDirs.add(file("Fabric/run"))
if (findProject(":Forge") == null) {
excludeDirs.add(file("Forge"))
@ -101,8 +102,7 @@ subprojects {
}
tasks.processResources {
from(rootProject.sourceSets.main.get().resources)
inputs.property("id", modId)
inputs.property("name", modName)
inputs.property("description", modDescription)
inputs.property("version", modVersion)
@ -110,6 +110,10 @@ subprojects {
inputs.property("license", modLicense)
inputs.property("sourcesURL", modSourcesURL)
inputs.property("issuesURL", modIssuesURL)
from(rootProject.sourceSets.main.get().resources) {
expand(inputs.properties)
}
}
tasks.jar {

View File

@ -1,6 +1,6 @@
{
"pack": {
"description": "Better Controls",
"description": "${name}",
"pack_format": 7,
"_comment": ""
}