Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Refactor into a multi-module project #45

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

gdusbabek
Copy link
Contributor

@gdusbabek gdusbabek commented Apr 13, 2017

No code was harmed while making this PR

Create a parent pom and move all code into a submodule (gossip-base). Subsequent PRs can create new summodules, move more code, etc.

This is for GOSSIP-78.

pom.xml Outdated

<name>Gossip Parent</name>
<groupId>org.apache.gossip</groupId>
<artifactId>gossip</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets call the artifact gossip-parent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in ebd8ddd

pom.xml Outdated
@@ -77,9 +83,9 @@

<dependencies>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move the dependencies into the module?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm on the fence. In other projects that have had global dependencies, I've left them in the parent. Most of these seem to fall into that category.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the end run there probably will be a few that are global and some that are specific. I do believe that the process should start with nothing in the global and then as things are shared by more than two modules they are pulled into the global

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem. Done.

* add *.ipr to .gitignore
* modify existing pom to be a parent. create new pom for gossip-core.
* I left all properties and dependencies in the parent, as they seemed to be a fairly general set of dependencies.
move all the code.
* rename parent module: gossip -> gossip-parent
* move dependencies into child module
@asfgit asfgit merged commit 298b1ae into apache:master Apr 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants