-
Notifications
You must be signed in to change notification settings - Fork 215
/
settings.gradle
57 lines (48 loc) · 1.7 KB
/
settings.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
51
52
53
54
55
56
57
plugins {
id 'com.gradle.develocity' version '3.18.2'
}
develocity {
buildScan {
termsOfUseUrl = 'https://gradle.com/help/legal-terms-of-use'
if (System.getenv('CI') == 'true') {
termsOfUseAgree = 'yes'
tag 'CI'
} else {
publishing.onlyIf { false }
}
}
}
rootProject.name = 'paparazzi-root'
include ':paparazzi'
include ':paparazzi-annotations'
include ':paparazzi-preview-processor'
include ':paparazzi-preview-lints'
include ':paparazzi-gradle-plugin'
include ':sample'
enableFeaturePreview('TYPESAFE_PROJECT_ACCESSORS')
includeBuild('build-logic') {
dependencySubstitution {
substitute module('app.cash.paparazzi:paparazzi-gradle-plugin') using project(':paparazzi-gradle-plugin')
substitute module('app.cash.paparazzi:aar2jar') using project(':aar2jar')
}
}
def isIdea = !(System.getProperty("idea.version") ?: "").isEmpty()
if (isIdea) {
includeTestProjectsIntoIDE()
}
private void includeTestProjectsIntoIDE() {
// Some of the test projects are intentionally supposed to fail. Don't import these into the main project.
def brokenProjects = [
"invalid-application-plugin", // intentionally does not import
"missing-library-plugin", // intentionally does not import
"missing-supported-plugins", // intentionally does not import
"multiplatform-plugin-without-android", // intentionally does not import
]
new File(rootDir, "paparazzi-gradle-plugin/src/test/projects").eachDir {
def dirName = it.name
if (!dirName.startsWith(".") && !brokenProjects.contains(dirName)) {
include ":test-projects:$dirName"
project(":test-projects:$dirName").projectDir = new File(rootDir, "paparazzi-gradle-plugin/src/test/projects/$dirName")
}
}
}