fabric-example-mod icon indicating copy to clipboard operation
fabric-example-mod copied to clipboard

Generated Eclipse project has gradle output on classpath

Open Bestsoft101 opened this issue 8 months ago • 1 comments

When generating an Eclipse project using gradlew eclipse, the following 2 folders get added to the project's classpath, those should not be there:

Image

If the folders don't exist, the project shows an error which is annoying. When the project is built with gradle, it gets worse: The class files in the gradle output directory overwrite the class files generated by eclipse, meaning all changes done in the IDE don't apply until the project is built again using gradle.

This part is contained in the .classpath file and shouldn't be there:

	<classpathentry kind="lib" path="C:/Users/Admin/Desktop/fabric-example-mod-1.21/build/classes/java/client">
		<attributes>
			<attribute name="test" value="true"/>
			<attribute name="gradle_used_by_scope" value="client,test"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="lib" path="C:/Users/Admin/Desktop/fabric-example-mod-1.21/build/resources/client">
		<attributes>
			<attribute name="test" value="true"/>
			<attribute name="gradle_used_by_scope" value="client,test"/>
		</attributes>
	</classpathentry>

In this commit I updated fabric in one of my mods, and the previous version doesn't have it, while the new one does

Bestsoft101 avatar Apr 28 '25 23:04 Bestsoft101

This issue should probably be transferred to the loom repo, but I don't have the perms to do so.

cputnam-a11y avatar Jul 25 '25 14:07 cputnam-a11y