Coder Social home page Coder Social logo

Modularization - Restrict imports in gradle to a specific package to ensure hexagonal architecture boundaries about banking-kata-java HOT 3 OPEN

valentinacupac avatar valentinacupac commented on May 22, 2024
Modularization - Restrict imports in gradle to a specific package to ensure hexagonal architecture boundaries

from banking-kata-java.

Comments (3)

schneidersteve avatar schneidersteve commented on May 22, 2024 1

As an alternative solution i would recommend gradles support for multiple components/projects instead of one component with a deep packages structure.

https://docs.gradle.org/current/userguide/structuring_software_products.html#structure_large_projects

from banking-kata-java.

valentinacupac avatar valentinacupac commented on May 22, 2024

I plan to work on this topic, as preparation for an upcoming meetup. Some changes I had made up to now was separate unit tests from integration tests (i.e. separate fast running from slow running), but next I need to actually also modularize the architecture too.

The following is a rough plan of what I'm currently doing (in progress), I see this as the minimal split required: core & adapter-*

from banking-kata-java.

valentinacupac avatar valentinacupac commented on May 22, 2024

@nicolasrosado, @schneidersteve I've added the split via modules core and adapter-*. In this way, all the infrastructure is purely within adapter modules. Interested to hear your thoughts.

@schneidersteve, in my current code, I'm using modules, but it's still all a single build. I saw the link you sent Reflecting software architecture in project structure - "We can represent each of our components as a separate Gradle build." - what do you see as the pros of that approach, compared to just the single-build multi-module approach?

from banking-kata-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.