-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathremote.gradle
34 lines (27 loc) · 2.04 KB
/
remote.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
/**************************************************************************************************
GRADLE REMOTE DISPATCH
*************************************************************************************************/
/*
* @author: [email protected]
*
* This Gradle script handles dispatching various ODK Project buildscripts to where the common
* logic is stored.
*/
// Remote Paths
def jacocoURL = 'https://raw.githubusercontent.com/opendatakit/gradle-config/' + gradle.ext.gradleConfigVersion + '/jacoco.gradle'
def variablesURL = 'https://raw.githubusercontent.com/opendatakit/gradle-config/' + gradle.ext.gradleConfigVersion + '/variables.gradle'
def uitestsURL = 'https://raw.githubusercontent.com/opendatakit/gradle-config/' + gradle.ext.gradleConfigVersion + '/uitests.gradle'
def reposURL = 'https://raw.githubusercontent.com/opendatakit/gradle-config/' + gradle.ext.gradleConfigVersion + '/repos.gradle'
logger.warn('gradle-config/remote.gradle -- gradle.ext.workspacePath: ' + gradle.ext.workspacePath)
// Local Paths
def jacocoLocalPath = gradle.ext.workspacePath + '/gradle-config/jacoco.gradle'
def variablesLocalPath = gradle.ext.workspacePath + '/gradle-config/variables.gradle'
def uitestsLocalPath = gradle.ext.workspacePath + '/gradle-config/uitests.gradle'
def reposLocalPath = gradle.ext.workspacePath + '/gradle-config/repos.gradle'
// The scripts to dispatch to each settings.gradle file -- N.B. is one directory level higher than others
// due to the location of settings.gradle in each project
ext.settingsScripts = gradle.ext.useLocalPaths ? [variablesLocalPath] : [variablesURL]
// The scripts to dispatch to each ODK_lib.gradle file
ext.libraryScripts = gradle.ext.useLocalPaths ? [jacocoLocalPath,variablesLocalPath,reposLocalPath] : [jacocoURL,variablesURL,reposURL]
// The scripts to dispatch to each ODK_app.gradle files
ext.applicationScripts = gradle.ext.useLocalPaths ? [jacocoLocalPath,variablesLocalPath,uitestsLocalPath,reposLocalPath] : [jacocoURL,variablesURL,uitestsURL,reposURL]