generated from amadornes/fg-multiproject-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (45 loc) · 1.81 KB
/
build.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
plugins {
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1"
}
subprojects {
configurations.all {
if (it.name.startsWith("_")) {
// You must exclude the same modules you substitute here, because ForgeGradle
exclude group: "com.ommods", module: "omlib"
return
}
resolutionStrategy.dependencySubstitution {
// Apply substitutions for modules your projects depend on, replacing them with another project
logger.info("substituted omlib")
substitute module("com.ommods:omlib") using project(":OMLib")
}
// Uncomment the following line if you are running into issues with dependency resolution.
// The reason is likely transitive dependencies bleeding into other projects and not
// being able to be resolved. Note that doing this will require you to manage certain
// kinds of dependencies (such as those needed at runtime) yourself:
//
// transitive false
}
}
project('runenv') {
ext {
mcversion = '1.19.2'
forgeversion = '43.3.0'
// javaversion = 17 // Defaults to 17 already
// mappings = "channel: 'parchment', version: '2022.11.27-1.19.2'" // Defaults to mojmap for the specified MC version
// runArgs = [ ] // Arguments applied to all runs
// runProps = [ name: value ] // Properties applied to all runs
}
repositories {
// Repositories for additional runtime dependencies go here
}
afterEvaluate {
dependencies {
// This is where any additional runtime dependencies for your dev environment go
}
}
}
// Ensure the run directory is excluded from the idea module
idea.module {
excludeDirs << file("run")
}