Skip to content

Commit 2a9b171

Browse files
author
Traun Leyden
committed
convert to use new dependency and java gradle plugin
1 parent 19ddab8 commit 2a9b171

File tree

4 files changed

+4
-28
lines changed

4 files changed

+4
-28
lines changed

Diff for: build.gradle

+1-23
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
classpath 'com.android.tools.build:gradle:0.8.+'
77
}
88
}
9-
apply plugin: 'android-library'
9+
apply plugin: 'java'
1010
apply plugin: 'maven'
1111
apply plugin: 'eclipse'
1212

@@ -20,20 +20,6 @@ repositories {
2020
apply from: 'dependencies-test.gradle' // <- enable this when testing
2121

2222

23-
android {
24-
compileSdkVersion 19
25-
buildToolsVersion "19.0.0"
26-
27-
defaultConfig {
28-
minSdkVersion 9
29-
targetSdkVersion 19
30-
}
31-
32-
lintOptions {
33-
abortOnError false
34-
}
35-
}
36-
3723
task createMavenDirectory(type: Exec) {
3824

3925
ext {
@@ -72,11 +58,3 @@ uploadArchives {
7258
}
7359
}
7460

75-
task sourcesJar(type: Jar) {
76-
classifier = 'sources'
77-
from android.sourceSets.main.java.srcDirs
78-
}
79-
80-
task generateJavadocs(type: Javadoc) {
81-
source = android.sourceSets.main.java.srcDirs
82-
}

Diff for: dependencies-archive.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
dependencies {
22

3-
compile 'com.android.support:support-v4:13.0.+'
43

54
// the cblite core library dependency is included as a maven archive because when declaring
65
// as a "compile project" dependency any projects that include this library will get errors.

Diff for: dependencies-test.gradle

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
dependencies {
22

3-
compile 'com.android.support:support-v4:13.0.+'
4-
5-
compile project(':CBLite')
3+
compile project(':libraries:couchbase-lite-java-core')
64

75
// as discovered by trial and error, the build will fail if "compile" is
86
// used: Error: duplicate files during packaging of APK. I guess it is
97
// being implicitly included by being in the libs folder, and then "double included"
108
// because of a "compile" directive to explicitly include the jar.
11-
instrumentTestCompile fileTree(dir: 'libs', include: 'td_collator_so.jar')
9+
testCompile fileTree(dir: 'libs', include: 'td_collator_so.jar')
1210

1311
compile 'org.mozilla:rhino:1.7R3'
1412

Diff for: settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ':couchbase-lite-java-javascript', ':libraries:couchbase-lite-java-core'

0 commit comments

Comments
 (0)