Multiple project dependency

Hello everyone!

I recently moved our open-source projects to Gradle, they were using hardcoded project files from Eclipse and Ant.

We have two projects, one called Datapack, mostly Java classes compiled at runtime and the Core of the application.

The Datapack project depends on the Core project, I’m using Buildship plugin and Eclipse.

The projects are not in a tree format, they are on different Git repositories and we want to keep them that way.

My goal is to have two build.gradle scripts to build them separately and use the Gradle plugin ‘eclipse’ to properly import the projects.

My current issues are that if I import the Core and then the Datapack on the Gradle Task view I have twice the Core project, also we get an error that says Core project has already been imported.

The other issue is that I haven’t been able to find a nice way to import our formatter settings from our old Eclipse settings.

Thank you in advance!

Core library:

1 Like

I’m just a novice in Gradle so I can’t advise here, but I’d recommend you to add a pointer to your project so that experts can get a better understanding of your needs.

I have done it, thanks!