Skip to content

README: Fix sample buildscript producing duplicate files in dev jars#8

Open
makamys wants to merge 1 commit into
TimeConqueror:masterfrom
makamys:fix-readme-dev-jar-dupe
Open

README: Fix sample buildscript producing duplicate files in dev jars#8
makamys wants to merge 1 commit into
TimeConqueror:masterfrom
makamys:fix-readme-dev-jar-dupe

Conversation

@makamys
Copy link
Copy Markdown

@makamys makamys commented Sep 11, 2021

The sample buildscript snippet in the readme makes the dev jars of mods contain two copies of every file. For reference, here's the standard snippet for generating dev jars:

task devJar(type: Jar) {
	classifier = 'dev'
	from sourceSets.main.output
}

artifacts {
	archives devJar
}

Removing the output.resourcesDir = output.classesDir line fixes this. Was there a reason for including it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant