-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
88 lines (76 loc) · 2.36 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
78
79
80
81
82
83
84
85
86
87
88
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'io.gitlab.arturbosch.detekt' apply false
id 'com.android.application' apply false
id 'com.android.library' apply false
id 'org.jetbrains.kotlin.android' apply false
id 'dagger.hilt.android.plugin' apply false
id "com.automattic.android.publish-to-s3" apply false
id "com.autonomousapps.dependency-analysis"
}
allprojects {
apply plugin: 'io.gitlab.arturbosch.detekt'
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://www.jitpack.io" }
maven { url "https://a8c-libs.s3.amazonaws.com/android" }
}
detekt {
config = files("${project.rootDir}/config/detekt/detekt.yml")
autoCorrect = false
buildUponDefaultConfig = true
disableDefaultRuleSets = false
ignoreFailures = false
parallel = true
debug = false
}
tasks.withType(KotlinCompile).all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
allWarningsAsErrors = true
freeCompilerArgs += [
"-opt-in=kotlin.RequiresOptIn"
]
}
}
}
subprojects {
repositories {
flatDir {
dirs '../../aars'
}
}
}
ext {
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
}
ext {
// libs
wordPressFluxCVersion = 'trunk-7ea7465680431fa4df5f0433d4c8b8395055b997'
wordpressUtilsVersion = "2.6.0"
// main
androidxAnnotationVersion = '1.6.0'
androidxAppcompatVersion = '1.4.2'
androidxCoreVersion = '1.12.0'
androidxDatastoreVersion = '1.0.0'
androidxConstraintlayoutVersion = '2.1.4'
androidxLifecycleVersion = '2.6.2'
androidxFragmentVersion = '1.5.4'
androidxSwipeToRefreshVersion = '1.1.0'
chrisbanesPhotoviewVersion = '2.3.0'
glideVersion = '4.13.2'
googleMaterialVersion = '1.6.1'
kotlinxCoroutinesVersion = '1.6.4'
squareupRetrofitVersion = "2.9.0"
// other
wordpressLintVersion = "2.0.0"
// project
mediaPickerDomainDependency = project.hasProperty("mediaPickerDomainVersion") ? "org.wordpress.mediapicker:domain:${project.getProperty("mediaPickerDomainVersion")}" : project(":mediapicker:domain")
}
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:$gradle.ext.detektVersion"
}