Execute multiple modules Gradle

Hello

This is my project:

In this project I have ‘modules’, one module looks like this:
1_herhaling
├── gradle
│ └── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
└── src
├── main
│ └── lol
│ ├── Library.java
│ └── be
│ └── kdg
│ ├── Demo1
│ │ ├── Main.class
│ │ └── Main.java
│ ├── Demo2
│ │ ├── Main.class
│ │ └── Main.java
│ └── groeiproject
│ ├── data
│ │ ├── Data.class
│ │ └── Data.java
│ └── model
│ ├── UpdateType.class
│ ├── UpdateType.java
│ ├── iOSUpdate.class
│ ├── iOSUpdate.java
│ ├── iOSUpdates$1.class
│ ├── iOSUpdates$2.class
│ ├── iOSUpdates.class
│ └── iOSUpdates.java
└── test
└── java
└── LibraryTest.java

14 directories, 18 files

Now I somehow need to be able to execute ‘gradle run’ in my folder ‘groeiproject’ and the demo’s of 1_herhaling, 2_generics,… should execute automatically as task. How do I do that?

I actually just want to be able to execute
./gradlew 1_herhaling
./gradlew 2_generics
./gradlew 3_reflection

but ./gradlew 1_herhaling gives this error:
* What went wrong:
Task ‘1_herhaling’ not found in root project ‘groeiproject’.

but the folder 1_herhaling is located in /groeiproject/

Do I need to add build.gradle files in my modules?
I’m totally lost in Gradle…

I think you should start with basic Gradle documentation about Java applications and then move to multi project builds.