forked from wordpress-mobile/WordPress-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
85 lines (76 loc) · 3.02 KB
/
settings.gradle
File metadata and controls
85 lines (76 loc) · 3.02 KB
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
78
79
80
81
82
83
84
85
pluginManagement {
gradle.ext.kotlinVersion = '1.6.10'
gradle.ext.agpVersion = '7.2.1'
gradle.ext.daggerVersion = "2.42"
gradle.ext.detektVersion = '1.21.0'
gradle.ext.navComponentVersion = '2.4.2'
plugins {
id "org.jetbrains.kotlin.android" version gradle.ext.kotlinVersion
id "org.jetbrains.kotlin.jvm" version gradle.ext.kotlinVersion
id "org.jetbrains.kotlin.kapt" version gradle.ext.kotlinVersion
id "org.jetbrains.kotlin.plugin.serialization" version gradle.ext.kotlinVersion
id "org.jetbrains.kotlin.plugin.parcelize" version gradle.ext.kotlinVersion
id "org.jetbrains.kotlin.plugin.allopen" version gradle.ext.kotlinVersion
id "com.android.application" version gradle.ext.agpVersion
id "com.android.library" version gradle.ext.agpVersion
id 'com.google.gms.google-services' version '4.3.8'
id "io.sentry.android.gradle" version "2.0.0"
id "io.gitlab.arturbosch.detekt" version gradle.ext.detektVersion
id "se.bjurr.violations.violation-comments-to-github-gradle-plugin" version "1.67"
id "androidx.navigation.safeargs.kotlin" version gradle.ext.navComponentVersion
}
repositories {
maven {
url 'https://a8c-libs.s3.amazonaws.com/android'
content {
includeGroup "com.automattic.android"
}
}
gradlePluginPortal()
google()
}
resolutionStrategy {
eachPlugin {
// TODO: Remove this when 'dagger.hilt' starts supporting Plugin Marker Artifacts
if (requested.id.id == 'dagger.hilt.android.plugin') {
useModule("com.google.dagger:hilt-android-gradle-plugin:$gradle.ext.daggerVersion")
}
}
}
}
plugins {
id "com.gradle.enterprise" version "3.9"
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.6.5'
}
gradleEnterprise {
server = "https://gradle.a8c.com"
allowUntrustedServer = false
buildScan {
def disableGE = System.getenv("GRADLE_ENTERPRISE_ANALYTICS_DISABLE")
if (!(disableGE == "1" || disableGE == "true")) {
publishAlways()
}
capture {
taskInputFiles = true
}
uploadInBackground = System.getenv("CI") == null
if (!System.getenv().containsKey("CI")) {
// Obfuscate personal data unless it's a CI build
obfuscation {
username { username -> System.getenv("GRADLE_ENTERPRISE_ANALYTICS_USERNAME") ?: username }
hostname { hostname -> System.getenv("GRADLE_ENTERPRISE_ANALYTICS_HOSTNAME") ?: hostname }
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
}
}
}
}
rootProject.name = 'WPAndroid'
include ':WordPress'
include ':libs:image-editor'
include ':libs:networking'
include ':libs:analytics'
include ':libs:editor'
include ':libs:processors'
include ':libs:annotations'
include ':libs:mocks'
apply from: './config/gradle/included_builds.gradle'