Skip to content

Commit

Permalink
Minotar modrinth publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
65-7a committed Jul 10, 2024
1 parent 4b09df0 commit cb10ab6
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
id 'com.modrinth.minotaur' version '2.+'
}

version = project.mod_version
Expand Down Expand Up @@ -67,20 +68,12 @@ jar {
}
}

// configure the maven publication
publishing {
publications {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
modrinth {
token = "${System.getenv("MODRINTH_TOKEN")}"
projectId = "GFFrKk83"
versionNumber = project.mod_version
uploadFile = remapJar
gameVersions = [project.minecraft_version]
loaders = ["fabric"]
dependencies = []
}

0 comments on commit cb10ab6

Please sign in to comment.