forked from badoo/RIBs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (67 loc) · 2.11 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
buildscript {
apply from: 'gradle/compose.gradle'
apply from: 'gradle/dependencies.gradle'
repositories {
jcenter()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "https://dl.bintray.com/kotlin/kotlin-eap/"
}
}
dependencies {
classpath deps.build.gradlePlugins.android
classpath deps.build.gradlePlugins.kotlin
classpath deps.build.gradlePlugins.mavenPublish
classpath deps.build.gradlePlugins.detekt
classpath deps.build.gradlePlugins.jacoco
}
}
apply from: 'gradle/compose.gradle'
apply from: 'gradle/dependencies.gradle'
apply from: 'gradle/utils.gradle'
subprojects {
buildscript {
repositories {
jcenter()
maven { url deps.build.gradlePluginsUrl }
maven { url "https://maven.google.com" }
maven { url "https://plugins.gradle.org/m2/" }
maven {
url "https://dl.bintray.com/kotlin/kotlin-eap/"
}
}
}
repositories {
jcenter {
content {
// just allow to include kotlinx projects
// detekt needs 'kotlinx-html' for the html report
includeGroup "org.jetbrains.kotlinx"
}
}
maven { url deps.build.gradlePluginsUrl }
maven { url "https://maven.google.com" }
maven { url "https://www.jitpack.io" }
maven {
url "https://dl.bintray.com/kotlin/kotlin-eap/"
}
}
configurations.all {
resolutionStrategy.eachDependency {
}
}
// Add '-compose' to all artifacts when building the compose variant.
if (project.hasProperty('POM_ARTIFACT_ID') && useCompose.toBoolean()) {
def artifactId = project.getProperty("POM_ARTIFACT_ID").toString()
if (!artifactId.contains("compose")) {
project.setProperty("POM_ARTIFACT_ID", project.getProperty("POM_ARTIFACT_ID") + "-compose")
}
}
}
configureDetektForAllSubprojects(project)
task clean(type: Delete) {
delete rootProject.buildDir
}