forked from couchbaselabs/couchbase-lite-java-forestdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
27 lines (22 loc) · 786 Bytes
/
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
/**
couchbase-lite-java-forestdb could be built and assembled as either an Android library (aar) or
a standard Java library (jar). By default it will be built as an android library. To specify
the build spec, you could set the project property 'spec' to 'java' or 'andriod' as follows:
1. From parent build.gradle:
project.ext.spec = "android" or "java"
2. From gradlew command line:
gradlew -P spec=android|java <task>
*/
if (!hasProperty("spec")) {
println "[couchbase-lite-java-forestdb] No build 'spec' defined, use 'android' by default"
project.ext.spec = "android"
}
apply from: "build-${spec}.gradle"
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
}
}