forked from Darkdustry-Coders/CorePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
34 lines (28 loc) · 966 Bytes
/
settings.gradle
File metadata and controls
34 lines (28 loc) · 966 Bytes
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
import java.nio.file.Files
import java.nio.file.StandardCopyOption
import java.nio.file.Paths
import java.lang.IllegalStateException
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
}
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 = "CorePlugin"
include 'annotations', 'processor', 'buildExtras'