forked from pwittchen/ReactiveNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (70 loc) · 2.76 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.
apply plugin: 'io.codearte.nexus-staging'
ext {
minSdkVersion = 9
minSdkVersionApps = 23
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
gradleVersion = '4.6'
kotlinVersion = '1.3.61'
detektVersion = '1.0.0.RC6-1'
}
ext.deps = [rxjava2 : 'io.reactivex.rxjava2:rxjava:2.2.17',
rxandroid2 : 'io.reactivex.rxjava2:rxandroid:2.1.1',
annotation : 'androidx.annotation:annotation:1.1.0',
appcompat : 'androidx.appcompat:appcompat:1.1.0',
junit : 'junit:junit:4.13',
truth : 'com.google.truth:truth:1.0.1',
robolectric : 'org.robolectric:robolectric:4.3.1',
mockitocore : 'org.mockito:mockito-core:3.2.4',
nullaway : 'com.uber.nullaway:nullaway:0.7.9',
errorprone : 'com.google.errorprone:error_prone_core:2.3.4',
nopen : 'com.jakewharton.nopen:nopen-annotations:1.0.1',
nopenchecker : 'com.jakewharton.nopen:nopen-checker:1.0.1',
ktlintgradle : 'gradle.plugin.org.jlleitschuh.gradle:ktlint-gradle:4.1.0',
kotlinstdlib : "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion",
kotlingradleplugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion",
detekt : "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"]
buildscript {
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath('com.dicedmelon.gradle:jacoco-android:0.1.4') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
classpath 'net.ltgt.gradle:gradle-apt-plugin:0.21'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
}
def getRepositoryUsername() {
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
}
def getRepositoryPassword() {
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
}
nexusStaging {
packageGroup = GROUP //optional if packageGroup == project.getGroup()
stagingProfileId = "9add401d06ecc9" //when not defined will be got from server using "packageGroup"
username = getRepositoryUsername()
password = getRepositoryPassword()
}