Skip to content

Commit

Permalink
v1.5.6
Browse files Browse the repository at this point in the history
 * Fix referencing mod version in code
 * Add back sources jar
  • Loading branch information
D-Cysteine committed Apr 28, 2024
1 parent af74e8e commit aaa97d2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
24 changes: 20 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

val neiCustomDiagramVersion: String by project
group = "com.github.dcysteine.neicustomdiagram"
version = neiCustomDiagramVersion

val minecraftVersion: String by project
minecraft {
mcVersion.set(minecraftVersion)

injectedTags.put("VERSION", project.version)
}

repositories {
Expand Down Expand Up @@ -102,6 +100,10 @@ dependencies {
}
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

tasks.withType<Jar> {
// Replace version in mcmod.info
filesMatching("mcmod.info") {
Expand All @@ -114,3 +116,17 @@ tasks.withType<Jar> {
}
archiveBaseName.set("NEICustomDiagram")
}

tasks.injectTags.configure {
outputClassName.set("${project.group}.Tags")
}

val sourcesJar by tasks.creating(Jar::class) {
from(sourceSets.main.get().allSource)
from("$projectDir/LICENSE.md")
archiveClassifier.set("sources")
}

artifacts {
archives(sourcesJar)
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
neiCustomDiagramVersion=1.5.5
neiCustomDiagramVersion=1.5.6

minecraftVersion=1.7.10

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.github.dcysteine.neicustomdiagram.main;

import com.github.dcysteine.neicustomdiagram.Tags;
import com.github.dcysteine.neicustomdiagram.main.config.Config;
import com.github.dcysteine.neicustomdiagram.main.config.ConfigGuiFactory;
import com.github.dcysteine.neicustomdiagram.main.config.ConfigOptions;
Expand All @@ -25,7 +26,7 @@
public final class NeiCustomDiagram {
public static final String MOD_ID = "neicustomdiagram";
public static final String MOD_NAME = "NEI Custom Diagram";
public static final String MOD_VERSION = "@version@";
public static final String MOD_VERSION = Tags.VERSION;
public static final String MOD_DEPENDENCIES =
"required-after:NotEnoughItems;"
+ "after:gregtech;"
Expand Down

0 comments on commit aaa97d2

Please sign in to comment.