Skip to content

Generated Eclipse project has gradle output on classpath #309

@Bestsoft101

Description

@Bestsoft101

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions