-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (68 loc) · 2.58 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'org.robolectric:robolectric-gradle-plugin:1.1.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1'
classpath 'io.fabric.tools:gradle:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenLocal()
mavenCentral()
// maven { url "http://nexus.motechproject.org/content/repositories/snapshots" }
maven { url 'http://nexus.motechproject.org/content/repositories/drishti' }
}
}
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
subprojects {
group = 'org.smartregister'
repositories {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "${projectDir}/libs/" }
maven { url "http://nexus.motechproject.org/content/repositories/drishti" }
maven { url "http://nexus.motechproject.org/content/repositories/snapshots" }
maven { url "http://acra.googlecode.com/svn/repository/releases" }
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "http://cloudant.github.io/cloudant-sync-eap/repository" }
maven {
url "${projectDir}/opensrp-app/../libs/"
}
maven {
url "${projectDir}/opensrp-app-it/../libs/"
}
mavenLocal()
}
// Improve build server performance by allowing disabling of pre-dexing
// (see http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.)
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}
apply plugin: 'build-dashboard'
apply plugin: 'java'
buildDashboard {
reports.html.destination = "build/"
}
test.reports.html.enabled = false
test.reports.junitXml.enabled = false
task customClean(type: Delete) {
delete rootProject.buildDir
}
clean.dependsOn customClean