forked from Darkdustry-Coders/CastleWars
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
23 lines (19 loc) · 732 Bytes
/
settings.gradle
File metadata and controls
23 lines (19 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.nio.file.Files
import java.nio.file.Paths
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}
def workspacePath = null
if (System.env["MINDURKA_WORKSPACE"] == null) {
def path = Paths.get("${rootProject.projectDir}").parent.resolve("workspace.meta")
if (Files.exists(path)) {
workspacePath = path.parent
} else {
throw new IllegalStateException("could not find workspace. Make sure 'MINDURKA_WORKSPACE' environment variable is set.")
}
} else {
workspacePath = Paths.get(System.env["MINDURKA_WORKSPACE"])
}
gradle.ext.workspacePath = workspacePath
apply from: "$workspacePath/buildscript/assets/shared.settings.gradle"
rootProject.name = 'Castle'