Modrinth Publishing
This commit is contained in:
parent
4fcaf1b3b6
commit
bdda648265
2 changed files with 34 additions and 1 deletions
26
build.gradle
26
build.gradle
|
@ -3,10 +3,12 @@ plugins {
|
||||||
id "legacy-looming" version "1.3-SNAPSHOT" // Version must be the same as fabric-loom's
|
id "legacy-looming" version "1.3-SNAPSHOT" // Version must be the same as fabric-loom's
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
id 'io.github.juuxel.loom-vineflower' version "1.11.0"
|
id 'io.github.juuxel.loom-vineflower' version "1.11.0"
|
||||||
|
id "com.modrinth.minotaur" version "2.+"
|
||||||
}
|
}
|
||||||
|
|
||||||
version = project.mod_version
|
version = project.mod_version
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
projchangelog = project.projchangelog
|
||||||
|
|
||||||
repositories {}
|
repositories {}
|
||||||
|
|
||||||
|
@ -72,6 +74,29 @@ jar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//modrinth
|
||||||
|
import com.modrinth.minotaur.dependencies.ModDependency
|
||||||
|
tasks.modrinth.dependsOn(tasks.modrinthSyncBody)
|
||||||
|
|
||||||
|
modrinth {
|
||||||
|
token = System.getenv("MODRINTH_TOKEN") // Please use an environment variable for this! The default is `$MODRINTH_TOKEN`.
|
||||||
|
projectId = "even-more-bountiful" // The ID of your Modrinth project. Slugs will not work.
|
||||||
|
versionNumber = version // The (preferably SemVer) version of the mod. If not specified, it'll use the `version` declaration
|
||||||
|
versionType = "alpha" // This is the default -- can also be `beta` or `alpha`
|
||||||
|
uploadFile = remapJar // Tells Minotaur to use the remapped jar
|
||||||
|
gameVersions = ["1.7.10"] // An array of game versions the version supports
|
||||||
|
loaders = ["fabric"] // Self-explanatory.
|
||||||
|
changelog = projchangelog
|
||||||
|
dependencies { // A special DSL for creating dependencies
|
||||||
|
// scope.type
|
||||||
|
// The scope can be `required`, `optional`, `incompatible`, or `embedded`
|
||||||
|
// The type can either be `project` or `version`
|
||||||
|
required.project "legacy-fabric-api" // Creates a new required dependency on Fabric API
|
||||||
|
// optional.project "legacy-modmenu"//, "modmenu version" // Creates a new optional dependency on this specific version of Sodium
|
||||||
|
}
|
||||||
|
syncBodyFrom = rootProject.file("README.md").text
|
||||||
|
}
|
||||||
|
|
||||||
// Configure the maven publication
|
// Configure the maven publication
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
@ -80,6 +105,7 @@ publishing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Select the repositories you want to publish to
|
// Select the repositories you want to publish to
|
||||||
repositories {
|
repositories {
|
||||||
// Uncomment to publish to the local maven
|
// Uncomment to publish to the local maven
|
||||||
|
|
|
@ -12,6 +12,13 @@ org.gradle.jvmargs=-Xmx1G
|
||||||
fabric_version = 1.9.0+1.7.10
|
fabric_version = 1.9.0+1.7.10
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.1.0-dev+001
|
mod_version = 0.1.1-dev
|
||||||
maven_group = xyz.limepot
|
maven_group = xyz.limepot
|
||||||
archives_base_name = EMB
|
archives_base_name = EMB
|
||||||
|
projchangelog = Changelog!
|
||||||
|
|
||||||
|
# Modrinth
|
||||||
|
modrinth_slug= even-more-bountiful
|
||||||
|
modrinth_id= s8N11jh8
|
||||||
|
modrinth_game_versions= 1.7.10
|
||||||
|
modrinth_mod_loaders= fabric
|
||||||
|
|
Loading…
Reference in a new issue