-
Notifications
You must be signed in to change notification settings - Fork 116
/
build.gradle
91 lines (78 loc) · 2.08 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
89
90
91
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
maven { url "https://a8c-libs.s3.amazonaws.com/android" }
}
dependencies {
classpath 'com.automattic.android:configure:0.6.5'
}
}
plugins {
id "com.android.application" apply false
id "org.jetbrains.kotlin.android" apply false
id "com.automattic.android.publish-to-s3" apply false
id "com.autonomousapps.dependency-analysis"
}
allprojects {
repositories {
maven {
url "https://a8c-libs.s3.amazonaws.com/android"
content {
includeGroup "org.wordpress"
includeGroup "org.wordpress.aztec"
}
}
google()
mavenCentral()
}
tasks.withType(KotlinCompile).all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
allWarningsAsErrors = true
}
}
}
apply plugin: 'com.automattic.android.configure'
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
configurations {
ktlint
}
dependencies {
ktlint 'com.github.shyiko:ktlint:0.9.2'
}
task ktlint(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "src/**/*.kt"
}
task ktlintFormat(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}
}
ext {
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
}
ext {
// mixed
gradlePluginVersion = '3.3.1'
kotlinCoroutinesVersion = '1.8.1'
tagSoupVersion = '1.2.1'
glideVersion = '4.10.0'
picassoVersion = '2.5.2'
robolectricVersion = '4.13'
jUnitVersion = '4.13.2'
jSoupVersion = '1.15.3'
wordpressUtilsVersion = '3.5.0'
espressoVersion = '3.0.1'
// other
wordpressLintVersion = '2.0.0'
// project
aztecProjectDependency = project.hasProperty("aztecVersion") ? "org.wordpress:aztec:${project.getProperty("aztecVersion")}" : project(":aztec")
}