-
-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathsettings.gradle
53 lines (45 loc) · 1.76 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
pluginManagement {
repositories {
gradlePluginPortal()
maven { url = 'https://maven.neoforged.net/releases' }
mavenLocal()
}
}
plugins {
id 'net.neoforged.moddev.repositories' version "${moddevgradle_plugin_version}"
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}
// This makes the version available to buildSrc
gradle.ext.moddevgradle_plugin_version = moddevgradle_plugin_version
gradle.ext.gson_version = gson_version
gradle.ext.diffpatch_version = diffpatch_version
gradle.ext.asm_version = asm_version
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
rulesMode = RulesMode.FAIL_ON_PROJECT_RULES
repositories {
mavenCentral()
mavenLocal()
}
}
if (rootProject.name.toLowerCase() == "neoforge") {
// Solve name clashes between projects/neoforge and the rootProject for Eclipse.
rootProject.name = "NeoForge-Root"
}
include ':base'
project(':base').projectDir = file('projects/base')
include ':neoforge'
project(':neoforge').projectDir = file('projects/neoforge')
include ':tests'
project(":tests").projectDir = file("tests")
include ':testframework'
include ':coremods'
// Ensure a unique artifact id within JIJ that does not conflict with net.neoforged:coremods, which is
// another external dependency.
project(":coremods").name = "neoforge-coremods"
// Expose the repository base URLs to projects to be able to access them
// See this Gradle issue for tracking a more permanent solution:
// https://github.com/gradle/gradle/issues/27260
gradle.settingsEvaluated {
gradle.extensions.add("repositoryBaseUrls", dependencyResolutionManagement.repositories.findAll { it instanceof MavenArtifactRepository }.collect { it.url }.toArray(URI[]::new))
}