Bump version & update publishing

This commit is contained in:
ruscalworld 2023-06-20 17:34:40 +03:00
parent a74174a585
commit d5e8f412d7
No known key found for this signature in database
GPG key ID: FDF13F4478EC3C36
2 changed files with 13 additions and 13 deletions

View file

@ -1,9 +1,8 @@
import com.modrinth.minotaur.TaskModrinthUpload
import net.fabricmc.loom.task.RemapJarTask import net.fabricmc.loom.task.RemapJarTask
plugins { plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2' id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'com.modrinth.minotaur' version '1.1.0' id 'com.modrinth.minotaur' version '2.+'
id 'fabric-loom' version '0.12-SNAPSHOT' id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
@ -14,8 +13,6 @@ repositories {
} }
} }
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
@ -92,17 +89,20 @@ tasks.register('remapShadowJar', RemapJarTask) {
addNestedDependencies = true addNestedDependencies = true
} }
assemble.dependsOn(remapShadowJar) modrinth {
tasks.register('publishModrinth', TaskModrinthUpload) {
dependsOn remapShadowJar
onlyIf { System.getenv('MODRINTH_TOKEN') }
token = System.getenv('MODRINTH_TOKEN') token = System.getenv('MODRINTH_TOKEN')
projectId = 'dbVXHSlv' projectId = 'dbVXHSlv'
versionNumber = project.mod_version versionNumber = project.mod_version
versionType = 'release'
uploadFile = remapShadowJar uploadFile = remapShadowJar
addGameVersion((String) project.minecraft_version) gameVersions.add(project.minecraft_version)
addLoader('fabric') loaders.add('fabric')
dependencies {
required.project 'fabric-api'
optional.project 'spark'
}
} }
assemble.dependsOn(remapShadowJar)

View file

@ -6,7 +6,7 @@ minecraft_version=1.20.1
yarn_mappings=1.20.1+build.2 yarn_mappings=1.20.1+build.2
loader_version=0.14.21 loader_version=0.14.21
# Mod Properties # Mod Properties
mod_version=1.0.9 mod_version=1.0.10
maven_group=ru.ruscalworld maven_group=ru.ruscalworld
archives_base_name=fabricexporter archives_base_name=fabricexporter
# Dependencies # Dependencies