Skip to content

Commit

Permalink
Fix gradle so version replaces in final jar
Browse files Browse the repository at this point in the history
  • Loading branch information
TorayLife committed Aug 22, 2023
1 parent a1ade45 commit ab64f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'com.github.johnrengelman.shadow'

version = project.version

var dev = "dev"

if (project.hasProperty("dev")) {
Expand Down Expand Up @@ -110,6 +108,8 @@ jar.finalizedBy('reobfJar')
import org.apache.tools.ant.filters.ReplaceTokens

task processSource(type: Sync) {
outputs.upToDateWhen { false }

from sourceSets.main.java
filter(ReplaceTokens, tokens: [
MAPPET : version,
Expand Down

0 comments on commit ab64f67

Please sign in to comment.