-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
53 lines (49 loc) · 1.67 KB
/
build.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
buildscript {
ext {
compose_version = '_'
}
dependencies {
classpath "io.nlopez.compose.rules:ktlint:_"
classpath CashApp.licenseeGradlePlugin
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'app.cash.licensee' apply false
id 'app.cash.paparazzi' apply false
id 'com.android.application' apply false
id 'com.android.library' apply false
id 'org.jetbrains.kotlin.android' apply false
id 'org.jetbrains.kotlin.plugin.compose' apply false
id 'org.jmailen.kotlinter' apply false
}
tasks.register('clean') {
delete rootProject.buildDir
}
if (hasProperty('buildScan')) {
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}
subprojects {
plugins.withId("app.cash.paparazzi") {
// Defer until afterEvaluate so that testImplementation is created by Android plugin.
afterEvaluate {
dependencies.constraints {
add("testImplementation", "com.google.guava:guava:_") {
attributes {
attribute(
TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE,
objects.named(TargetJvmEnvironment, TargetJvmEnvironment.STANDARD_JVM)
)
}
because("LayoutLib and sdk-common depend on Guava's -jre published variant." +
"See https://github.com/cashapp/paparazzi/issues/906.")
}
}
}
}
}