forked from SpongePowered/Configurate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.gradle
69 lines (57 loc) · 1.69 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
pluginManagement {
repositories {
maven {
name = "sponge"
url = "https://repo.spongepowered.org/repository/maven-public/"
mavenContent { releasesOnly() }
}
}
}
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
}
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
repositories {
pluginManagement.repositories.each(it.&add)
// Allow checkstyle only to be resolved from mavenLocal if set to a snapshot
if (settings.hasProperty('checkstyleVersion') && checkstyleVersion.endsWith("-SNAPSHOT")) {
mavenLocal {
content {
includeGroup("com.puppycrawl.tools")
}
}
}
}
}
enableFeaturePreview "TYPESAFE_PROJECT_ACCESSORS"
if (!JavaVersion.current().java11Compatible) {
throw new GradleException("""\
Configurate requires at least Java 11 to build, but you are running ${JavaVersion.current()}.
Your JAVA_HOME is currently: ${System.getenv("JAVA_HOME")}
Is this correct?
""")
}
def prefix = "configurate"
rootProject.name = "$prefix-parent"
// core
["core", "tool", "bom", "examples"].each {
include ":$it"
// findProject(":$it")?.name = "$prefix-$it"
}
// formats
["gson", "hocon", "jackson", "xml", "yaml"].each {
include ":format:$it"
// findProject(":format:$it")?.name = "$prefix-$it"
}
// extras
["kotlin", "guice", "dfu2", "dfu3", "dfu4"].each {
include ":extra:$it"
findProject(":extra:$it")?.name = "extra-$it"
}
includeBuild 'vendor', {
name = "configurate-vendor"
}
includeBuild 'build-logic', {
name = "configurate-build-logic"
}