Skip to content

Instantly share code, notes, and snippets.

@GeePawHill
Created December 16, 2021 16:19
Show Gist options
  • Select an option

  • Save GeePawHill/1d7d356aadf4d13e8b8e160c8815e8ff to your computer and use it in GitHub Desktop.

Select an option

Save GeePawHill/1d7d356aadf4d13e8b8e160c8815e8ff to your computer and use it in GitHub Desktop.
I want to use a single gradle+intellij project to build, run, and test multiple arbitrary binaries created from a single repo and source tree. Some notes:
1) A typical example is the robot world project I'm doing for We Think Code. I want one tree, and I want to use it to build/run/test two clients, a service, and a making app.
2) By "one source tree" I mean one .../src/... hierarchy, with main/test/resources below it. Intellij handles this well. Multiple trees are harder to both organize and navigate.
3) I know how to use sub-projects with source dependencies. I don't care for them. Intellij's gradle runs are already slower than their native ones, and when you throw in multiple sub-projects for each run, they get even slower.
@eatdrinksleepcode
Copy link

Do you already have a public repo that has the code organized the way you want it? Might be easier to show concrete options instead of talking in abstractions.

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