-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.gradle
79 lines (60 loc) · 2.03 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies { // Add third party gradle plugins
classpath 'com.android.tools.build:gradle:7.4.2'
// We're using a patched version of SQLDelight, for reproducible builds. Thanks JitPack!
classpath 'com.github.muun.sqldelight:gradle-plugin:1.5.3-reproducible-build'
}
ext {
global_kotlin_version = '1.6.10'
}
}
plugins {
id "com.github.spotbugs-base" version "4.7.1" apply false
id 'org.jetbrains.kotlin.jvm' version "$global_kotlin_version" apply false
id 'org.jetbrains.kotlin.plugin.serialization' version "$global_kotlin_version" apply false
id 'org.jetbrains.kotlin.kapt' version "$global_kotlin_version" apply false
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
// Without this we cant define spot bugs as an external script that can be applied
project.extensions.extraProperties.set('SpotBugsTask', com.github.spotbugs.snom.SpotBugsTask)
subprojects {
ext {
// GLOBAL LIBRARY VERSIONS
global_version_dagger = '2.40.5'
global_version_lombok = '1.18.22'
global_version_mockito = '3.8.0'
global_version_moneta = '1.1'
global_version_jackson_money = '1.0.0'
global_threetenabp_version = '1.4.6'
}
buildscript {
repositories {
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$global_kotlin_version"
}
}
repositories {
google()
mavenCentral()
maven { url "https://clojars.org/repo/" }
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
}