Skip to content

Commit

Permalink
Update outlet and modrinth plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Aug 27, 2022
1 parent 24059c2 commit 4413028
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
buildscript {
dependencies {
classpath 'com.github.dexman545:Outlet:1.2.0'
classpath 'com.github.dexman545:Outlet:1.3.6'
}
}
plugins {
id 'java-library'
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish'
id 'com.modrinth.minotaur' version '1.1.0'
id 'com.modrinth.minotaur' version '2.+'
id 'org.ajoberstar.reckon' version '0.13.0'
}
apply plugin: 'dex.plugins.outlet'
Expand Down Expand Up @@ -78,23 +78,27 @@ processResources {
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}

import com.modrinth.minotaur.TaskModrinthUpload
task publishModrinth (type: TaskModrinthUpload){
tasks.modrinth {
onlyIf {
def stage = version.version.stage.value
stage != null && stage.name != 'beta'
stage == null || stage.name != 'beta'
}
}

modrinth {
token = System.env.MODRINTH_KEY
projectId = project.modrinth_project_id
//featured = true
versionNumber = version.toString()
versionName = archivesBaseName + '-' + version
changelog = "[Changelog](https://github.com/MineLittlePony/BigPony/releases/tag/${version.toString()})"
uploadFile = jar.outputs.getFiles().asPath // This is the java jar task
addLoader(project.modrinth_loader_type)
uploadFile = remapJar
outlet.mcVersions().each{ver ->
addGameVersion ver
gameVersions.add ver
}
dependencies {
required.project 'P7dR8mSH'
optional.project 'JBjInUXM'
}
}

Expand Down

0 comments on commit 4413028

Please sign in to comment.