Modrinth, MC 1.16.4
This commit is contained in:
parent
6004831255
commit
730959c7c5
|
@ -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
|
35
build.gradle
35
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"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -20,9 +21,8 @@ dependencies {
|
||||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
||||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
|
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-command-api-v1:+"
|
//Fabric API
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-lifecycle-events-v1:+"
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api-base:+"
|
|
||||||
|
|
||||||
modApi("me.sargunvohra.mcmods:autoconfig1u:3.2.2") {
|
modApi("me.sargunvohra.mcmods:autoconfig1u:3.2.2") {
|
||||||
exclude(group: "net.fabricmc.fabric-api")
|
exclude(group: "net.fabricmc.fabric-api")
|
||||||
|
@ -67,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 = 'v3lfX2LD'
|
||||||
// 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://modmuss50.me/fabric.html
|
# check these on https://modmuss50.me/fabric.html
|
||||||
minecraft_version=1.16.3
|
minecraft_version=1.16.4
|
||||||
yarn_mappings=1.16.3+build.11
|
yarn_mappings=1.16.4+build.7
|
||||||
loader_version=0.9.3+build.207
|
loader_version=0.10.8
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.1
|
mod_version=1.1
|
||||||
maven_group=io.gitlab.jfronny
|
maven_group=io.gitlab.jfronny
|
||||||
archives_base_name=dynres
|
archives_base_name=dynres
|
||||||
|
#Dependencies
|
||||||
|
fabric_version=0.28.1+1.16
|
Loading…
Reference in New Issue