Add CurseForge
This commit is contained in:
parent
7c70cf81bb
commit
8e720488fa
12
README.md
12
README.md
@ -33,5 +33,17 @@ Place this in your ``fabric.mod.json``:
|
||||
}
|
||||
```
|
||||
|
||||
Also replace this in ````build.gradle````:
|
||||
```gradle
|
||||
version = project.mod_version
|
||||
```
|
||||
with:
|
||||
```gradle
|
||||
version = "${project.mod_version}+${project.minecraft_version}"
|
||||
```
|
||||
|
||||
## Changelog
|
||||
[View Changelog](CHANGELOG.md)
|
||||
|
||||
## Credits
|
||||
The icon is a recolored version of ModMenu's icon.
|
26
build.gradle
26
build.gradle
@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '0.4-SNAPSHOT'
|
||||
id 'com.matthewprenger.cursegradle' version '1.4.0'
|
||||
}
|
||||
|
||||
compileJava {
|
||||
@ -59,3 +60,28 @@ task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
jar {
|
||||
from "LICENSE"
|
||||
}
|
||||
|
||||
if (project.hasProperty('curseforge.api_key')) {
|
||||
curseforge {
|
||||
apiKey = project.getProperty('curseforge.api_key')
|
||||
project {
|
||||
id = project.curseforge_id
|
||||
changelog = 'A changelog can be found at https://gitea.thebrokenrail.com/TheBrokenRail/ModUpdater/src/branch/master/CHANGELOG.md'
|
||||
releaseType = 'release'
|
||||
addGameVersion project.simple_minecraft_version
|
||||
addGameVersion 'Fabric'
|
||||
mainArtifact(remapJar) {
|
||||
displayName = "ModUpdater v${mod_version} for ${project.minecraft_version}"
|
||||
}
|
||||
afterEvaluate {
|
||||
uploadTask.dependsOn('remapJar')
|
||||
}
|
||||
relations {
|
||||
requiredDependency 'fabric-api'
|
||||
}
|
||||
}
|
||||
options {
|
||||
forgeGradleIntegration = false
|
||||
}
|
||||
}
|
||||
}
|
@ -3,11 +3,13 @@ org.gradle.jvmargs = -Xmx1G
|
||||
|
||||
# Fabric Properties
|
||||
minecraft_version = 1.16
|
||||
curseforge_id = 391583
|
||||
simple_minecraft_version = 1.16
|
||||
yarn_build = 1
|
||||
fabric_loader_version = 0.8.8+build.202
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 0.0.1
|
||||
mod_version = 1.0.0
|
||||
maven_group = com.thebrokenrail
|
||||
|
||||
# Dependencies
|
||||
|
@ -27,5 +27,11 @@
|
||||
"fabricloader": ">=0.7.4",
|
||||
"fabric": "*",
|
||||
"minecraft": "1.16.x"
|
||||
},
|
||||
"custom": {
|
||||
"modupdater": {
|
||||
"strategy": "curseforge",
|
||||
"projectID": 391583
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user