Skip to content

Commit

Permalink
修复 Modrinth 上传版本的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidBlock-cn committed May 27, 2023
1 parent ad8bdd2 commit e17d78d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions with_blockus/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.modrinth.minotaur.dependencies.ModDependency
apply plugin: "com.modrinth.minotaur"
archivesBaseName = rootProject.archives_base_name_blockus + "-fabric"
version = rootProject.mod_version_blockus + '-mc' + rootProject.minecraft_version
group = rootProject.maven_group
Expand All @@ -19,4 +21,18 @@ dependencies {
modCompileOnly "com.terraformersmc.terraform-api:terraform-shapes-api-v1:${project.terraform_version}"
modApi "curse.maven:blockus-312289:${project.blockus_version}"
implementation project(path: ':', configuration: "namedElements")
}


modrinth {
projectId = 'qAQHIBF8'
String platform = project.properties.getOrDefault 'loom.platform', 'fabric'
versionNumber = "${rootProject.mod_version_blockus}-${platform}-${rootProject.minecraft_version}"
versionType = 'release'
uploadFile = remapJar
gameVersions = project.supported_minecraft_versions.isEmpty() ? List.of(rootProject.minecraft_version) : (project.supported_minecraft_versions as String).split(',') as List<String>
loaders = [platform]
var list = [new ModDependency('JnrDtPAE', 'required'), new ModDependency('tb7kCxSW', 'required')]
if (platform == 'fabric') list.add new ModDependency('P7dR8mSH', 'required')
dependencies = list
}

0 comments on commit e17d78d

Please sign in to comment.