This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
/
build.gradle
57 lines (46 loc) · 1.48 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
/**
* zigbee4java Gradle build
*
* @author Chris Hatton (christopherhattonuk@gmail.com)
*/
import org.codehaus.groovy.tools.StringHelper
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
def zigbee4javaProfilesArray = StringHelper.tokenizeUnquoted(zigbee4javaProfiles)
group = 'org.bubblecloud.zigbee4java'
apply plugin: 'java'
apply from: 'build-common.gradle'
/* Include build scripts from all profiles selected in 'gradle.properties' */
allprojects {
repositories {
jcenter()
mavenLocal()
mavenCentral()
maven { url "http://repository-bubblecloud.forge.cloudbees.com/release/" }
maven { url "http://repo.maven.apache.org/maven2" }
}
}
dependencies {
for (zigbee4javaProfile in zigbee4javaProfilesArray) {
switch (zigbee4javaProfile) {
case 'android':
println 'zigbee4java: Including Android build'
compile project(':zigbee-serial-android')
compile project(':zigbee-console-android')
break;
case 'javase':
println 'zigbee4java: Including JavaSE build'
compile project(':zigbee-serial-javase')
compile project(':zigbee-console-javase')
break;
}
}
}