forked from JfMods/VersionChanger
Modrinth, MC 1.16.4
This commit is contained in:
parent
09a9f1fdf0
commit
d745a34464
@ -6,11 +6,21 @@ variables:
|
|||||||
before_script:
|
before_script:
|
||||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||||
|
|
||||||
deploy:
|
build_test:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script: gradle --build-cache assemble
|
script:
|
||||||
|
- gradle --build-cache assemble
|
||||||
|
- cp build/libs/* ./
|
||||||
|
- rm *-dev.jar
|
||||||
|
- mv *.jar latest.jar
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/libs
|
- build/libs
|
||||||
|
- latest.jar
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
modrinth:
|
||||||
|
stage: deploy
|
||||||
|
when: manual
|
||||||
|
script: gradle --build-cache publishModrinth
|
44
build.gradle
44
build.gradle
@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '0.5-SNAPSHOT'
|
id 'fabric-loom' version '0.5-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
|
id "com.modrinth.minotaur" version "1.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
@ -21,16 +22,16 @@ dependencies {
|
|||||||
|
|
||||||
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
|
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
|
||||||
// You may need to force-disable transitiveness on them.
|
// You may need to force-disable transitiveness on them.
|
||||||
modApi "me.sargunvohra.mcmods:autoconfig1u:3.2.0-unstable"
|
modApi "me.sargunvohra.mcmods:autoconfig1u:3.3.1"
|
||||||
include "me.sargunvohra.mcmods:autoconfig1u:3.2.0-unstable"
|
include "me.sargunvohra.mcmods:autoconfig1u:3.3.1"
|
||||||
modApi ("me.shedaniel.cloth:config-2:4.7.0-unstable") {
|
modApi ("me.shedaniel.cloth:config-2:4.8.3") {
|
||||||
transitive = false
|
exclude(group: "net.fabricmc.fabric-api")
|
||||||
}
|
}
|
||||||
include ("me.shedaniel.cloth:config-2:4.7.0-unstable") {
|
include ("me.shedaniel.cloth:config-2:4.8.3") {
|
||||||
transitive = false
|
exclude(group: "net.fabricmc.fabric-api")
|
||||||
}
|
}
|
||||||
|
|
||||||
modImplementation "io.github.prospector:modmenu:1.14.6+build.31"
|
modImplementation "io.github.prospector:modmenu:1.14.13+build.22"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,23 +67,18 @@ jar {
|
|||||||
from "LICENSE"
|
from "LICENSE"
|
||||||
}
|
}
|
||||||
|
|
||||||
// configure the maven publication
|
import com.modrinth.minotaur.TaskModrinthUpload
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
mavenJava(MavenPublication) {
|
|
||||||
// add all the jars that should be included when publishing to maven
|
|
||||||
artifact(remapJar) {
|
|
||||||
builtBy remapJar
|
|
||||||
}
|
|
||||||
artifact(sourcesJar) {
|
|
||||||
builtBy remapSourcesJar
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// select the repositories you want to publish to
|
task publishModrinth (type: TaskModrinthUpload){
|
||||||
repositories {
|
token = System.getenv("MODRINTH_API_TOKEN") // Use an environment property!
|
||||||
// uncomment to publish to the local maven
|
projectId = '387LWVd9'
|
||||||
// mavenLocal()
|
versionNumber = "${project.mod_version}"
|
||||||
|
uploadFile = remapJar // This is the java jar task
|
||||||
|
addGameVersion("${project.minecraft_version}")
|
||||||
|
addLoader('fabric')
|
||||||
|
versionName = "[${project.minecraft_version}] ${project.mod_version}"
|
||||||
|
afterEvaluate {
|
||||||
|
tasks.publishModrinth.dependsOn(remapJar)
|
||||||
|
tasks.publishModrinth.dependsOn(sourcesJar)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
# Done to increase the memory available to gradle.
|
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://modmuss50.me/fabric.html
|
minecraft_version=1.16.4
|
||||||
minecraft_version=1.16.2
|
yarn_mappings=1.16.4+build.7
|
||||||
yarn_mappings=1.16.2+build.26
|
loader_version=0.10.8
|
||||||
loader_version=0.9.2+build.206
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0
|
mod_version=1.1
|
||||||
maven_group=io.gitlab.jfronny
|
maven_group=io.gitlab.jfronny
|
||||||
archives_base_name=versionchanger
|
archives_base_name=versionchanger
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# check this on https://modmuss50.me/fabric.html
|
fabric_version=0.28.0+1.16
|
||||||
fabric_version=0.19.0+build.398-1.16
|
|
||||||
|
Loading…
Reference in New Issue
Block a user