/
build.gradle
76 lines (66 loc) · 3.12 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
/*
Copyright (C) 2015 Fred Grott(aka shareme GrottWorkShop)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under License.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
// applies ci gradle snippet and our dependencies snippet
apply from: 'buildsystem/ci.gradle'
apply from: 'buildsystem/dependencies.gradle'
buildscript {
//for plugins only deps
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
//godot plugin
classpath 'de.hannesstruss:godot:0.2'
//hugo plugin
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
//spoon plugin
//to run all tests on all devices:
// gradle spoon
// at the command line
classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.0.3'
// in app modules
// apply plugin: 'com.neenbedankt.android-apt'
// need version 1.8 once butterknife is to 8.0.2 stable
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// genymotion plugin needs applied at a buildsystem gradle snippet
// as we want it only applied when as far as the configuration
// in our non-ci server environments, unless we are using genymotion
//emulators from the ci-server
//classpath 'com.genymotion:plugin:1.0'
classpath 'org.moallemi.gradle.advanced-build-version:gradle-plugin:1.5.0'
//maven tasks for android plugin, if you use jfrog than add that too as I use jitpack instead
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
//probe
classpath 'org.lucasr.probe:gradle-plugin:0.1.3'
// frodo plugin for rxjava testing
classpath "com.fernandocejas.frodo:frodo-plugin:0.8.1"
}
}
// dependencies.gradle also gets are allprojects adjustment blocks to adjust for
// google support libs being out-of-synch with support testing libs, etc.
allprojects {
ext{
//Configure stuff
ourReportsDir = '${project.buildDir}/reports'
// we use a plugin to version libraries and applications and the versioning
// policy is usually different for both the app and library modules
// thus we define the versions per the plugin in each individual module
androidApplicationId = 'com.github.shareme.gwsjinn'
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
testApplicationId = 'com.github.shareme.gwsjinn.test'
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}