-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild.gradle
87 lines (74 loc) · 2.87 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// Those declarations are just a workaround for a false-positive Kotlin Gradle Plugin warning
// https://youtrack.jetbrains.com/issue/KT-46200
alias(sharedLibs.plugins.android.application).apply(false)
alias(sharedLibs.plugins.android.library).apply(false)
alias(sharedLibs.plugins.kotlin.android).apply(false)
alias(sharedLibs.plugins.kotlin.parcelize).apply(false)
alias(sharedLibs.plugins.kotlin.detekt).apply(false)
alias(sharedLibs.plugins.kotlin.jvm).apply(false)
alias(sharedLibs.plugins.kotlin.kapt).apply(false)
alias(sharedLibs.plugins.dependency.analysis)
alias(sharedLibs.plugins.automattic.configure)
}
allprojects {
apply plugin: 'checkstyle'
apply plugin: 'io.gitlab.arturbosch.detekt'
repositories {
maven {
url "https://a8c-libs.s3.amazonaws.com/android"
content {
includeGroup "org.wordpress"
includeGroup "org.wordpress.fluxc"
includeGroup "org.wordpress.wellsql"
}
}
google()
mavenCentral()
maven {
url "https://a8c-libs.s3.amazonaws.com/android/jcenter-mirror"
content {
includeVersion "com.android.volley", "volley", "1.1.1"
includeVersion "com.facebook.flipper", "flipper", "0.51.0"
includeVersion "com.facebook.flipper", "flipper-network-plugin", "0.51.0"
}
}
}
task checkstyle(type: Checkstyle) {
source 'src'
classpath = files()
}
checkstyle {
toolVersion = '8.3'
configFile file("${project.rootDir}/config/checkstyle.xml")
}
detekt {
config = files("${project.rootDir}/config/detekt/detekt.yml")
autoCorrect = false
buildUponDefaultConfig = true
disableDefaultRuleSets = false
ignoreFailures = false
parallel = true
debug = false
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}
}
ext {
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
}
ext {
fluxcAnnotationsProjectDependency = project.hasProperty("fluxcAnnotationsVersion") ? "org.wordpress.fluxc:fluxc-annotations:${project.getProperty("fluxcAnnotationsVersion")}" : project(":fluxc-annotations")
fluxcProcessorProjectDependency = project.hasProperty("fluxcProcessorVersion") ? "org.wordpress.fluxc:fluxc-processor:${project.getProperty("fluxcProcessorVersion")}" : project(":fluxc-processor")
fluxcProjectDependency = project.hasProperty("fluxcVersion") ? "org.wordpress:fluxc:${project.getProperty("fluxcVersion")}" : project(":fluxc")
}
dependencies {
detektPlugins sharedLibs.detekt.formatting
}
apply from: './config/gradle/gradle_build_scan.gradle'