In this tutorial, we will take a look at how to create a Multi-Project in IntelliJ,
Step 1: Open IntelliJ IDE
Step 2: Menu: File -> New -> Project...
Make sure you choose Gradle Java Project, we will create a project with the name multi-proj-demo


Step 3: Menu: File -> New -> Module...
Again make sure you select Gradle and Java Project, we will call this module as utils,
Thats it, now you have a muti-project Gradle Java Project,
setting.gradlerootProject.name = 'multi-proj-demo'
include 'utils'
build.gradle
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
test {
useJUnitPlatform()
}
Build
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :utils:compileJava
> Task :utils:processResources NO-SOURCE
> Task :utils:classes
> Task :utils:compileTestJava NO-SOURCE
> Task :utils:processTestResources NO-SOURCE
> Task :utils:testClasses UP-TO-DATE
- Installing Gradle on macOS - Gradle Tutorial
- Install Gradle VS Code for Java Projects
- Adding Jackson dependency to Java Gradle Project
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Fix: Unsupported Java. Your build is currently configured to use Java 17.0.5 and Gradle 7.1.
- Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK
- Run IntelliJ Java main method without Gradle build
- How to Clear Gradle Cache on Mac
- Create a Gradle Java Project in VS Code
- How to run Gradle build in offline mode
- Fix: Deprecated Gradle features were used in this build, making it incompatible with Gradle
- Fix: Spring Boot + IntelliJ + Gradle : Unsupported class file major version 64 Error
- Find installed Gradle version command
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
- How to create Gradle Multi-Project in IntelliJ
- Generate Project Dependency tree using Gradle Command
- Get MD5 Hash as Checksum of a String in Python - Python
- SharePoint - Use Today's Date Time in list view filter and calculated column - SharePoint
- How to List All Users in Linux - Linux
- Setting Expire Time - EX EXAT PX PXAT and KEEPTTL with Spring Boot + Redis - Java
- Program 13: Reverse a String - 1000+ Python Programs - Python-Programs
- How to retrieve all SharePoint Online List Items using Rest API - SharePoint
- Install postgres Client using apt-get command - Ubuntu
- M1/M2 Mac VirtualBox Unsupported hardware architecture detected! - MacOS