Skip to content

Commit

Permalink
Add readme and modrinth minotaur
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Jan 24, 2024
1 parent abc79ce commit f0da977
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Update Depression

![logo.png](src/main/resources/assets/update-depression/icon.png)

Update suppression helper mod. This mod is useful in technical Minecraft. If you don't know what this is, you probably
shouldn't be using it.

Current features include:
- A command to place a CCE boxes.
- Update suppression crash fix.

Planned features include:
- Options to reintroduce patched update suppression bugs.
32 changes: 19 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '1.5-SNAPSHOT'
id 'maven-publish'
id 'com.modrinth.minotaur' version '2.+'
}

version = project.mod_version
Expand Down Expand Up @@ -40,10 +41,6 @@ processResources {

def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release = targetJavaVersion
Expand All @@ -56,9 +53,6 @@ java {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
archivesBaseName = project.archives_base_name
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}

Expand All @@ -68,19 +62,31 @@ jar {
}
}

// configure the maven publication
remapJar {
version = "${project.version}+mc${project.minecraft_version}"
}

publishing {
publications {
mavenJava(MavenPublication) {
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 = project.hasProperty('modrinthKey') ? project.modrinthKey : System.getenv('MODRINTH_TOKEN')
projectId = 'update-depression'
versionNumber = "${project.version}+mc${project.minecraft_version}"
versionType = 'release'
uploadFile = remapJar
gameVersions = [project.minecraft_version]
loaders = ['fabric', 'quilt']
dependencies {
required.project 'fabric-api'
embedded.project 'betterconfig'
}
}

0 comments on commit f0da977

Please sign in to comment.