summaryrefslogtreecommitdiff
path: root/build.gradle
blob: 52e53093c008d57e6a27b48cf82c8a9f6ae27ba6 (plain)
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
buildscript {
    ext.agpVersion = "8.0.2"
}
plugins {
    id 'com.android.application' version "$agpVersion" apply false
    id 'com.android.library' version "$agpVersion" apply false
    id 'com.github.spotbugs' version '4.8.0' apply false
    id 'checkstyle'
}

project.ext {
    // AndroidX
    annotationVersion = "1.4.0"
    appcompatVersion = "1.5.1"
    coreVersion = "1.9.0"
    fragmentVersion = "1.5.5"
    mediaVersion = "1.6.0"
    media3Version = "1.1.1"
    paletteVersion = "1.0.0"
    preferenceVersion = "1.1.1"
    recyclerViewVersion = "1.2.1"
    viewPager2Version = "1.1.0-beta01"
    workManagerVersion = "2.7.1"
    googleMaterialVersion = "1.7.0"

    // Third-party
    commonslangVersion = "3.6"
    commonsioVersion = "2.5"
    jsoupVersion = "1.15.1"
    glideVersion = "4.13.2"
    okhttpVersion = "4.12.0"
    eventbusVersion = "3.3.1"
    rxAndroidVersion = "2.1.1"
    rxJavaVersion = "2.2.2"

    //Tests
    awaitilityVersion = "3.1.6"
    junitVersion = "4.13"
    robolectricVersion = "4.9"
    espressoVersion = "3.5.0"
    runnerVersion = "1.5.0"
    rulesVersion = "1.5.0"
    testCoreVersion = "1.5.0"
    mockitoVersion = "5.11.0"
}

checkstyle {
    toolVersion '10.3.1'
}

tasks.register('checkstyle', Checkstyle) {
    minHeapSize = "200m"
    maxHeapSize = "2g"
    classpath = files()
    source "${project.rootDir}"
    exclude("**/generated-sources/**")
    exclude("**/gen/**")
    exclude("**/build/**")
    exclude("**/generated/**")
}