-
Notifications
You must be signed in to change notification settings - Fork 101
/
build.gradle
94 lines (81 loc) · 3.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.novoda:bintray-release:$project.bintrayPluginVersion"
}
}
allprojects {
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
def buildSrcDir = 'buildsystem'
apply from: "${buildSrcDir}/inject.gradle"
task wrapper(type: Wrapper) {
gradleVersion = project.gradleVersion
}
task cleanFrodo(type: Exec) {
description = 'Cleans all Frodo projects.'
commandLine './gradlew', 'clean'
}
task installFrodoApi(type: Exec) {
description = 'Assembles and installs Frodo Api in the local maven repository.'
commandLine './gradlew', '-p', 'frodo-api/', 'assemble', 'install'
}
task installFrodoRuntime(type: Exec) {
description = 'Assembles and installs Frodo Core Runtime Library in the local maven repository.'
commandLine "./gradlew", "-p", "frodo-runtime/", "assembleDebug", "install", "-x", "lint"
}
task installFrodoPlugin(type: Exec) {
description = 'Assembles and installs Frodo Gradle Plugin in the local maven repository.'
commandLine "./gradlew", "-p", "frodo-plugin/", "build", "install"
}
task installFrodoAndroidSample(type: Exec,
dependsOn: ['installFrodoApi', 'installFrodoRuntime', 'installFrodoPlugin']) {
description = 'Assembles and installs Frodo Example Android application.'
commandLine "./gradlew", "clean", "-p", "frodo-android-sample/", "assembleDebug", "installDebug"
}
installFrodoAndroidSample.mustRunAfter('installFrodoApi', 'installFrodoRuntime',
'installFrodoPlugin')
task runUnitTests(
dependsOn: [':frodo-runtime:cleanTestDebugUnitTest', ':frodo-runtime:testDebugUnitTest']) {
description = 'Run unit tests for frodo runtime.'
}
task publishFrodoPlugin(type: Exec, dependsOn: ['frodo-plugin:javadocJar']) {
description = 'Publishes Frodo Gradle Plugin.'
commandLine "./gradlew", "-p", "frodo-plugin/", "build", "bintrayUpload",
"-PbintrayUser=$System.env.BINTRAY_USERNAME",
"-PbintrayKey=$System.env.BINTRAY_KEY",
"-PdryRun=false"
}
task publishFrodoApi(type: Exec, dependsOn: ['frodo-api:javadocJar']) {
description = 'Publishes Frodo Library Api.'
commandLine "./gradlew", "-p", "frodo-api/", "build", "bintrayUpload",
"-PbintrayUser=$System.env.BINTRAY_USERNAME",
"-PbintrayKey=$System.env.BINTRAY_KEY",
"-PdryRun=false"
}
task publishFrodoRuntime(type: Exec,
dependsOn: ['frodo-runtime:androidSourcesJar', 'frodo-runtime:androidJavadocsJar']) {
description = 'Publishes Frodo Core Runtime Library.'
commandLine "./gradlew", "-p", "frodo-runtime/", "build", "bintrayUpload",
"-PbintrayUser=$System.env.BINTRAY_USERNAME",
"-PbintrayKey=$System.env.BINTRAY_KEY",
"-PdryRun=false"
}
task publishFrodo(
dependsOn: ['cleanFrodo', 'publishFrodoPlugin', 'publishFrodoApi', 'publishFrodoRuntime']) {
description = 'Publishes a new Frodo Library version to Bintray.'
}
publishFrodo.mustRunAfter('cleanFrodo', 'publishFrodoPlugin', 'publishFrodoApi',
'publishFrodoRuntime')