Skip to content

Commit

Permalink
build: machete optimization (The-Aether-Team#2196)
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 authored Jun 19, 2024
1 parent 229516e commit 57e686a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id 'io.github.0ffz.github-packages' version '[1,2)'
id 'com.matthewprenger.cursegradle' version '[1.4,1.5)'
id 'com.modrinth.minotaur' version '[2,3)'
id "io.github.p03w.machete" version "2.0.1"
}

version = "${mc_version}-${mod_version}-neoforge"
Expand Down Expand Up @@ -51,6 +52,10 @@ sourceSets.main.resources {
srcDir 'src/generated/resources'
}

processResources {
exclude '.cache/'
}

dependencies {
implementation "net.neoforged:neoforge:${project.neoforge_version}"

Expand Down Expand Up @@ -121,6 +126,21 @@ repositories {
mavenLocal()
}

machete {
additionalTasks.add("jarJar")

png.enabled = true
png.alpha = true
png.expectReunpack = true

json.enabled = true

jij.enabled = true

lvtStriping.enabled = true
sourceFileStriping.enabled = true
}

tasks.named('jar', Jar).configure {
manifest {
attributes([
Expand Down

0 comments on commit 57e686a

Please sign in to comment.