Multi-Module Gradle Configuration With Git X-Modules

Multi-Module Gradle Configuration With Git X-Modules

Multi-Module Gradle Configuration With Git X-Modules. See how to build a multi-component app in Gradle without uploading each component to Maven each time it's updated. On one hand, it makes sense to create a separate Git repository (and a separate Gradle project) for each library and for the app itself.

See how to build a multi-component app in Gradle without uploading each component to Maven each time it's updated.

Developing an application and a few libraries in parallel could be quite painful.

On one hand, it makes sense to create a separate Git repository (and a separate Gradle project) for each library and for the app itself. Then the libraries and the app would be connected via Gradle dependencies. So if a bug in the app is caused by a bug in one of the libraries, to fix it one has to

  1. make a change in the library;
  2. build and upload the library artifacts to the Maven/Ivy repository;
  3. download the new versions of the library artifacts from the app project;
  4. build the app and ...
  5. ... check if the change actually fixes the app, if not, go to (1)

This cycle is annoying and slow, especially if the building process involves running all tests on the CI. 

On the other hand, there's another approach: put all libraries and apps into the same Git repository (so-called "monorepo"). It would work for some projects but in general it's  not a good idea.

java tutorial devops git gradle monorepo submodules

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Install OpenJDK 11 on CentOS 8

What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).

Git Rebase Tutorial and Comparison with Git Merge

In this article, I will explain to you a few differences between git merge, git rebase, and the git interactive rebase.I will tell a bit about what pros...

Java Tutorial for Beginners | Java Tutorial | Java Programming | Core Java Tutorial | Learn Java

This "Java Tutorial for Beginners" Full course will help you master all the major concepts in java such as Arrays, Polymorphism, Abstraction, Inheritance, and Collections.

7 Best Practices in GIT for Your Code Quality

Git plays a significant role in software development. It allows developers to work on the same code base at the same time. Check out 7 best practices for Git.There is no doubt that Git plays a significant role in software development. It allows developers to work on the same code base at the same time. Still, developers struggle for code quality.

DevOps Live - 2 | Git Tutorial | Learn Git in 15 Minutes

šŸ”„Edureka DevOps Training: https://www.edureka.co/devops-certification-training This edureka video on Git Tutorial will talk about Version Control System & Ve...