-
Notifications
You must be signed in to change notification settings - Fork 154
/
settings.gradle.kts
29 lines (24 loc) · 811 Bytes
/
settings.gradle.kts
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
plugins {
id("com.gradle.enterprise").version("3.16.2")
id("com.gradle.enterprise.gradle-enterprise-conventions-plugin").version("0.7.5")
}
checkIfCurrentJavaIsCompatible()
rootProject.name = "gradle-profiler"
include("chrome-trace")
include("build-operations")
include("heap-dump")
include("client-protocol")
include("instrumentation-support")
include("studio-agent")
include("studio-plugin")
rootProject.children.forEach {
it.projectDir = rootDir.resolve( "subprojects/${it.name}")
}
/**
* Intellij-gradle-plugin requires Java 11.
*/
fun checkIfCurrentJavaIsCompatible() {
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_11)) {
throw GradleException("This project should be run with Java 11 or later, but it was run with Java ${JavaVersion.current()}.")
}
}