forked from Yelp/swagger-gradle-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
43 lines (35 loc) · 933 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
rootProject.name = "swagger-gradle-codegen"
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
jcenter()
google()
}
resolutionStrategy {
eachPlugin {
if ("com.android" in requested.id.id) {
useModule("com.android.tools.build:gradle:${requested.version}")
}
}
}
}
include(":samples:junit-tests")
if (shouldIncludeAndroidProjects()) {
include(
":samples:kotlin-android",
":samples:kotlin-coroutines",
":samples:groovy-android"
)
}
includeBuild("gradle-plugin")
fun shouldIncludeAndroidProjects(): Boolean {
if (System.getenv("CI") != null) {
// Ensure that on CI systems we run all the gradle tasks (including the Android specific ones)
return true;
}
if (System.getenv("SKIP_ANDROID") != null) {
return false;
}
return true;
}