Skip to content

move modules to his own repository? #651

Closed

Description

@jknack

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:

  1. move all the modules to his own repository
  2. create a modules folder in jooby core (this repository)
  3. uses git submodules to load modules inside the modules folder
  4. create a couple of scripts to assemble, aggregate and release jooby with all modules.

Activity

  1. noboomu commented on Feb 17, 2017

    @noboomu

    This would make it much easier for others to contribute as well...

  2. BodySplash commented on Feb 22, 2017

    @BodySplash

    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.

  3. jknack commented on Feb 22, 2017

    @jknack
    MemberAuthor

    @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.

  4. BodySplash commented on Feb 23, 2017

    @BodySplash

    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.

  5. ph-ms commented on Mar 31, 2017

    @ph-ms

    @noboomu @BodySplash - if you had to limit to a single strong reason for NOT having this monorepo design is it:

    1. The clone takes too long
    2. The .git folder on my machine is too big
    3. It is hard to navigate, once cloned
    4. I don't want spend the elapsed time to build everything were I to make a small contrib to a relative 'leaf-node' module
    5. As make async-http-client a test dependency #4 but s/elapsed time/local Maven repo disk space/
    6. As make async-http-client a test dependency #4 but s/elapsed time/my connection to the internet isn't cheap and fast for Maven downloading/
    7. Something else?
  6. BodySplash commented on Mar 31, 2017

    @BodySplash

    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.

  7. ph-ms commented on Mar 31, 2017

    @ph-ms

    Thanks Jean-Baptiste. @noboomu ?

  8. nesl247 commented on Apr 4, 2017

    @nesl247

    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.

  9. nesl247 commented on Apr 4, 2017

    @nesl247

    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.

  10. jschneider commented on Apr 10, 2017

    @jschneider
    Contributor

    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.

  11. paul-hammant commented on Apr 11, 2017

    @paul-hammant
    Contributor

    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:

    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).

    TL;DR - Jooby's Monorepo is just fine.

  12. jschneider commented on Apr 12, 2017

    @jschneider
    Contributor

    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.

  13. paul-hammant commented on Apr 14, 2017

    @paul-hammant
    Contributor

    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),

  14. jschneider commented on Apr 14, 2017

    @jschneider
    Contributor

    @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... ;-)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions