-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
45 lines (37 loc) · 1.36 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
rootProject.name = 'Raspberry'
include 'shared'
include 'modern-api'
// Define the root of the modules
def modernDir = new File(rootDir, 'modern')
// Check if the directory exists and is a directory
if (modernDir.exists() && modernDir.isDirectory()) {
// List all subdirectories
modernDir.eachDir { dir ->
// Check if a build.gradle file exists in the subdirectory
if (new File(dir, 'build.gradle').exists() || new File(dir, 'build.gradle.kts').exists()) {
// Include the module
include ":modern:${dir.name}"
// Set the project directory if needed
project(":modern:${dir.name}").projectDir = dir
}
}
}
include 'bukkit'
include 'paper'
include 'velocity'
include 'bungee'
// Define the root of the modules
def examplesDir = new File(rootDir, 'examples')
// Check if the directory exists and is a directory
if (examplesDir.exists() && examplesDir.isDirectory()) {
// List all subdirectories
examplesDir.eachDir { dir ->
// Check if a build.gradle file exists in the subdirectory
if (new File(dir, 'build.gradle').exists() || new File(dir, 'build.gradle.kts').exists()) {
// Include the module
include ":examples:${dir.name}"
// Set the project directory if needed
project(":examples:${dir.name}").projectDir = dir
}
}
}