You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due that jooby has so many modules and of course we are going to keep adding... may be a good idea to move modules to his own git repository.
All these modules make hard to quickly check jooby core and/or see a quick project overview due we must scroll a lot.. to see it.
Still there is one main drawbacks: maven and release process. Existing release process works quite well and it is to produce/maintain releases. If we split modules into his own repository the release process will be affected.
Initial suggestion:
move all the modules to his own repository
create a modules folder in jooby core (this repository)
uses git submodules to load modules inside the modules folder
create a couple of scripts to assemble, aggregate and release jooby with all modules.
First of all, congratulations for this excellent project.
In my experience, submodules are a real PITA to maintain. In another project, I followed mostly your plan, with the difference that the submodules were checkedout via a script, and ignored in the main repository.
We even have a little shell tool to ease that kind of setup : https://github.com/arpinum-oss/beastmaster.
@BodySplash Thank you, appreciate your feedback. I considered Jooby is a great project to work with but it is hard to reach people and build medium size community.
Think will go with submodules as described here, but can you point me to your example? I mean a direct link to to shell script.
Thanks again and please don't forget to star Jooby.
All I can find in my github repositories is this set of ruby scripts for a former open source project of mine : https://github.com/MongoLink/mongolink-tools
Their are so simple I'm a little bit ashamed to show them :)
Concerning submodules, maybe subtrees could be a better solution then. I believe submodules are great to include stable dependencies, but not that great to work on a multi module project, where you want to feel you're working on a single code base. This article is a good introduction to this matter.
I'd definitely move each module to it's own repository. This does allow another benefit as well. Each module could have it's own releases then. Rather than module-x having a breaking bug or something and waiting for all of jooby to have a release, you could easily release a bugfix.
Not trying to spam the thread, but one more reason is different maintainers would be possible then without them having access to merge in PRs for every other part of the framework.
I personally switched to monorepos for my projects. And I love it.
The release process and dependency management is so much simpler...
Of course I see the other arguments. Don't know what is right for Jooby. But I will definitely not look back to separate repos. There is a reason why large companies (Google, Facebook, ...) use mono repositories.
From that article, you can target a leaf module (and it's deps) directly from root (after checkout), like so:
mvn clean install -pl jooby-mongodb -am
There's ways of working with Jooby as we have it now, that mean there's less MB consumed on hard drives and lower elapsed times on build/tests of targetted parts of the Jooby ecosystem. I'm also a veteran of Google's monorepo and documentator of it here - https://trunkbaseddevelopment.com/expanding-contracting-monorepos/ (and more).
Typically a user has several jooby modules in his pom. And I am quite sure they want to have just one version number over all modules.
I have had the other case (with assertj). And it is a real pain.
Updating each module on its own. They have common dependencies with different version numbers. That is really, really hard.
Therefore I think it is necessary to release each and every module every time with the same version number.
If you prefer to release each and every module on its own every time, I am ok with separate repositories (but I'd prefer the mono repo).
TL;DR: The users want one version number for all jooby modules.
I agree, @jschneider. The only downside is that we get to flood Maven central with things that bump version number but are binary identical (ish) to their predecessor. Of course with Edgar's monorepo design, he can cd into (say) jooby-mongodb and to a point release to solve one bug, which incentivized downstream teams can pull in range for all the Jooby pieces (ref),
@paul-hammant Yes, we flood Maven central.
But I'd prefer that over burdening the user with having to do the work itself.
Hard disks are cheap these days... ;-)
Activity
noboomu commentedon Feb 17, 2017
This would make it much easier for others to contribute as well...
BodySplash commentedon Feb 22, 2017
First of all, congratulations for this excellent project.
In my experience, submodules are a real PITA to maintain. In another project, I followed mostly your plan, with the difference that the submodules were checkedout via a script, and ignored in the main repository.
We even have a little shell tool to ease that kind of setup : https://github.com/arpinum-oss/beastmaster.
jknack commentedon Feb 22, 2017
@BodySplash Thank you, appreciate your feedback. I considered Jooby is a great project to work with but it is hard to reach people and build medium size community.
Think will go with submodules as described here, but can you point me to your example? I mean a direct link to to shell script.
Thanks again and please don't forget to star Jooby.
BodySplash commentedon Feb 23, 2017
All I can find in my github repositories is this set of ruby scripts for a former open source project of mine : https://github.com/MongoLink/mongolink-tools
Their are so simple I'm a little bit ashamed to show them :)
Concerning submodules, maybe subtrees could be a better solution then. I believe submodules are great to include stable dependencies, but not that great to work on a multi module project, where you want to feel you're working on a single code base. This article is a good introduction to this matter.
ph-ms commentedon Mar 31, 2017
@noboomu @BodySplash - if you had to limit to a single strong reason for NOT having this monorepo design is it:
BodySplash commentedon Mar 31, 2017
Clearly number 4. It's also a matter of clarity : I don't have to look at all this code that is valuable, but useless for my own work.
ph-ms commentedon Mar 31, 2017
Thanks Jean-Baptiste. @noboomu ?
nesl247 commentedon Apr 4, 2017
I'd definitely move each module to it's own repository. This does allow another benefit as well. Each module could have it's own releases then. Rather than module-x having a breaking bug or something and waiting for all of jooby to have a release, you could easily release a bugfix.
nesl247 commentedon Apr 4, 2017
Not trying to spam the thread, but one more reason is different maintainers would be possible then without them having access to merge in PRs for every other part of the framework.
jschneider commentedon Apr 10, 2017
I personally switched to monorepos for my projects. And I love it.
The release process and dependency management is so much simpler...
Of course I see the other arguments. Don't know what is right for Jooby. But I will definitely not look back to separate repos. There is a reason why large companies (Google, Facebook, ...) use mono repositories.
gamaleyvv commentedon Apr 11, 2017
http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/
https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/
Sorry: It's hard, but you can ...
paul-hammant commentedon Apr 11, 2017
Full disclosure (I'm ph-ms too - work account): https://paulhammant.com/2017/04/04/benchmarking-a-maven-monorepo/
From that article, you can target a leaf module (and it's deps) directly from root (after checkout), like so:
There's ways of working with Jooby as we have it now, that mean there's less MB consumed on hard drives and lower elapsed times on build/tests of targetted parts of the Jooby ecosystem. I'm also a veteran of Google's monorepo and documentator of it here - https://trunkbaseddevelopment.com/expanding-contracting-monorepos/ (and more).
TL;DR - Jooby's Monorepo is just fine.
jschneider commentedon Apr 12, 2017
One thing from a user perspective:
Typically a user has several jooby modules in his pom. And I am quite sure they want to have just one version number over all modules.
I have had the other case (with assertj). And it is a real pain.
Updating each module on its own. They have common dependencies with different version numbers. That is really, really hard.
Therefore I think it is necessary to release each and every module every time with the same version number.
If you prefer to release each and every module on its own every time, I am ok with separate repositories (but I'd prefer the mono repo).
TL;DR: The users want one version number for all jooby modules.
paul-hammant commentedon Apr 14, 2017
I agree, @jschneider. The only downside is that we get to flood Maven central with things that bump version number but are binary identical (ish) to their predecessor. Of course with Edgar's monorepo design, he can cd into (say) jooby-mongodb and to a point release to solve one bug, which incentivized downstream teams can pull in range for all the Jooby pieces (ref),
jschneider commentedon Apr 14, 2017
@paul-hammant Yes, we flood Maven central.
But I'd prefer that over burdening the user with having to do the work itself.
Hard disks are cheap these days... ;-)