Skip to content

Commit

Permalink
remove reobf from gradle and some other commented bits
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Nov 2, 2023
1 parent a59dfee commit 8d39664
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import groovy.json.JsonSlurper
import mekanism.MergeJars
import net.darkhax.curseforgegradle.TaskPublishCurseForge
import net.darkhax.curseforgegradle.UploadArtifact
//import net.minecraftforge.gradle.common.util.RunConfig
//import net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace

import java.util.function.Consumer

Expand Down Expand Up @@ -387,7 +385,7 @@ void exclusiveRepo(RepositoryHandler handler, String url, Consumer<InclusiveRepo
handler.exclusiveContent {
it.forRepositories(handler.maven {
setUrl(url)
}/*, fg.repository*/)//Add FG's repo so we make sure we are able to then find the mapped deps
})
it.filter { f -> filterSetup.accept(f) }
}
}
Expand Down Expand Up @@ -587,29 +585,6 @@ artifacts {
archives sourcesJar
}

createReobf(sourceSets.api)
for (String name : secondaryModules) {
createReobf(sourceSets.getByName(name))
}
def reobfAllJar = createReobf('allJar')

def createReobf(SourceSet sourceSet) {
//TODO def reobfTask = createReobf(sourceSet.getJarTaskName())
//TODO reobfTask.configure { libraries.from(sourceSet.compileClasspath) }
//TODO tasks.named(sourceSet.getJarTaskName()).configure(task -> task.finalizedBy(reobfTask))
//TODO return reobfTask
}

def createReobf(String name) {
//def reobfExtension = (NamedDomainObjectContainer) extensions.getByName("reobf")
//return reobfExtension.register(name)
}

//TODO allJar.configure { finalizedBy(reobfAllJar) }
//TODO afterEvaluate {
//TODO tasks.named('jar', Jar).configure { finalizedBy(tasks.named('reobfJar', RenameJarInPlace)) }
//TODO }

//Minimize/optimize all png files, requires optipng on the PATH
// Credits: BrainStone
void minimizePNGFile(File file) {
Expand Down

0 comments on commit 8d39664

Please sign in to comment.