mirror of
https://github.com/chylex/Minecraft-Window-Title.git
synced 2025-05-20 21:34:07 +02:00
Update build scripts
This commit is contained in:
parent
e0b48e1c53
commit
6c4892dcd0
Fabric
Forge/src/main/resources/META-INF
build.gradle.ktsgradle.propertiessettings.gradle.ktssrc/main/resources
@ -4,7 +4,7 @@ val fabricVersion: String by project
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
idea
|
idea
|
||||||
id("fabric-loom") version "0.10-SNAPSHOT"
|
id("fabric-loom")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "customwindowtitle",
|
"id": "${id}",
|
||||||
"name": "${name}",
|
"name": "${name}",
|
||||||
"description": "${description}",
|
"description": "${description}",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
@ -22,12 +22,13 @@
|
|||||||
"chylex.customwindowtitle.fabric.CustomWindowTitle"
|
"chylex.customwindowtitle.fabric.CustomWindowTitle"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
|
||||||
"customwindowtitle.mixins.json"
|
"mixins": [{
|
||||||
],
|
"config": "${id}.mixins.json"
|
||||||
|
}],
|
||||||
|
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.7.2",
|
"fabricloader": ">=${minimumFabricVersion}",
|
||||||
"minecraft": ">=1.17"
|
"minecraft": ">=${minimumMinecraftVersion}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
modLoader = "javafml"
|
modLoader = "javafml"
|
||||||
loaderVersion = "[31,)"
|
loaderVersion = "[0,)"
|
||||||
|
|
||||||
authors = "${author}"
|
authors = "${author}"
|
||||||
license = "${license}"
|
license = "${license}"
|
||||||
issueTrackerURL = "${issuesURL}"
|
issueTrackerURL = "${issuesURL}"
|
||||||
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "customwindowtitle"
|
modId = "${id}"
|
||||||
version = "${version}"
|
version = "${version}"
|
||||||
displayName = "${name}"
|
displayName = "${name}"
|
||||||
description = "${description}"
|
description = "${description}"
|
||||||
displayURL = "${sourcesURL}"
|
displayURL = "${sourcesURL}"
|
||||||
|
|
||||||
[[dependencies.customwindowtitle]]
|
[[dependencies.${id}]]
|
||||||
modId = "minecraft"
|
modId = "minecraft"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "[1.17,)"
|
versionRange = "[${minimumMinecraftVersion},)"
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
side = "CLIENT"
|
side = "CLIENT"
|
||||||
|
|
||||||
[[dependencies.customwindowtitle]]
|
[[dependencies.${id}]]
|
||||||
modId = "forge"
|
modId = "forge"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "[31.2.45,)"
|
versionRange = "[${minimumForgeVersion},)"
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
side = "CLIENT"
|
side = "CLIENT"
|
||||||
|
@ -14,6 +14,10 @@ val modIssuesURL: String by project
|
|||||||
val minecraftVersion: String by project
|
val minecraftVersion: String by project
|
||||||
val mixinVersion: String by project
|
val mixinVersion: String by project
|
||||||
|
|
||||||
|
val minimumMinecraftVersion: String by project
|
||||||
|
val minimumForgeVersion: String by project
|
||||||
|
val minimumFabricVersion: String by project
|
||||||
|
|
||||||
val modNameStripped = modName.replace(" ", "")
|
val modNameStripped = modName.replace(" ", "")
|
||||||
val jarVersion = "$minecraftVersion+v$modVersion"
|
val jarVersion = "$minecraftVersion+v$modVersion"
|
||||||
|
|
||||||
@ -101,8 +105,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.processResources {
|
tasks.processResources {
|
||||||
from(rootProject.sourceSets.main.get().resources)
|
inputs.property("id", modId)
|
||||||
|
|
||||||
inputs.property("name", modName)
|
inputs.property("name", modName)
|
||||||
inputs.property("description", modDescription)
|
inputs.property("description", modDescription)
|
||||||
inputs.property("version", modVersion)
|
inputs.property("version", modVersion)
|
||||||
@ -110,6 +113,13 @@ subprojects {
|
|||||||
inputs.property("license", modLicense)
|
inputs.property("license", modLicense)
|
||||||
inputs.property("sourcesURL", modSourcesURL)
|
inputs.property("sourcesURL", modSourcesURL)
|
||||||
inputs.property("issuesURL", modIssuesURL)
|
inputs.property("issuesURL", modIssuesURL)
|
||||||
|
inputs.property("minimumMinecraftVersion", minimumMinecraftVersion)
|
||||||
|
inputs.property("minimumForgeVersion", minimumForgeVersion)
|
||||||
|
inputs.property("minimumFabricVersion", minimumFabricVersion)
|
||||||
|
|
||||||
|
from(rootProject.sourceSets.main.get().resources) {
|
||||||
|
expand(inputs.properties)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.jar {
|
tasks.jar {
|
||||||
@ -130,6 +140,10 @@ subprojects {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.test {
|
||||||
|
onlyIf { false }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("setupIdea") {
|
tasks.register("setupIdea") {
|
||||||
|
@ -12,8 +12,14 @@ modIssuesURL=https://github.com/chylex/Minecraft-Window-Title/issues
|
|||||||
minecraftVersion=1.17.1
|
minecraftVersion=1.17.1
|
||||||
forgeVersion=37.0.75
|
forgeVersion=37.0.75
|
||||||
fabricVersion=0.11.7
|
fabricVersion=0.11.7
|
||||||
|
loomVersion=0.12
|
||||||
mixinVersion=0.8.4
|
mixinVersion=0.8.4
|
||||||
|
|
||||||
|
# Constraints
|
||||||
|
minimumMinecraftVersion=1.17
|
||||||
|
minimumForgeVersion=31.2.45
|
||||||
|
minimumFabricVersion=0.7.2
|
||||||
|
|
||||||
# Gradle
|
# Gradle
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
|
@ -6,6 +6,12 @@ pluginManagement {
|
|||||||
maven(url = "https://maven.fabricmc.net/") { name = "Fabric" }
|
maven(url = "https://maven.fabricmc.net/") { name = "Fabric" }
|
||||||
maven(url = "https://repo.spongepowered.org/repository/maven-public/") { name = "Sponge Snapshots" }
|
maven(url = "https://repo.spongepowered.org/repository/maven-public/") { name = "Sponge Snapshots" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
if (settings.extra.has("loomVersion")) {
|
||||||
|
id("fabric-loom") version "${settings.extra["loomVersion"]}-SNAPSHOT"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.extra.has("forgeVersion")) {
|
if (settings.extra.has("forgeVersion")) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"description": "Custom Window Title",
|
"description": "${name}",
|
||||||
"pack_format": 5,
|
"pack_format": 5,
|
||||||
"_comment": ""
|
"_comment": ""
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user