-
-
Notifications
You must be signed in to change notification settings - Fork 148
/
Copy pathsettings.gradle
50 lines (44 loc) · 1.41 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
45
46
47
48
49
50
pluginManagement {
repositories {
gradlePluginPortal()
maven { url 'https://repo.william278.net/releases' }
maven { url 'https://maven.fabricmc.net/' }
maven { url 'https://maven.architectury.dev/' }
maven { url 'https://maven.minecraftforge.net' }
maven { url 'https://repo.essential.gg/repository/maven-public' }
}
plugins {
def egtVersion = "0.6.5"
id("gg.essential.defaults") version egtVersion
id("gg.essential.multi-version.root") version egtVersion
}
}
// Common
rootProject.name = 'HuskSync'
include("common")
// Bukkit
include("bukkit")
project(":bukkit").with {
projectDir = file("bukkit/")
buildFileName = "root.gradle"
}
file('bukkit').listFiles((FileFilter) ((File file) -> file.isDirectory() && file.name ==~ /(\d+)\.(\d+)(\.(\d+))?/)).each {
include("bukkit:$it.name")
project(":bukkit:$it.name").with {
projectDir = file("bukkit/${it.name}")
buildFileName = '../build.gradle'
}
}
// Fabric
include("fabric")
project(":fabric").with {
projectDir = file("fabric/")
buildFileName = "root.gradle"
}
file('fabric').listFiles((FileFilter) ((File file) -> file.isDirectory() && file.name ==~ /(\d+)\.(\d+)(\.(\d+))?/)).each {
include("fabric:$it.name")
project(":fabric:$it.name").with {
projectDir = file("fabric/${it.name}")
buildFileName = '../build.gradle'
}
}