@@ -9,9 +9,17 @@ version = System.getenv("MAVEN_UPLOAD_VERSION")
99buildscript {
1010 repositories {
1111 jcenter()
12+ google()
1213 }
1314 dependencies {
14- classpath ' com.android.tools.build:gradle:2.1.2'
15+ classpath ' com.android.tools.build:gradle:3.6.4'
16+ }
17+ }
18+
19+ allprojects {
20+ repositories {
21+ google() // and here
22+ jcenter()
1523 }
1624}
1725
@@ -21,13 +29,21 @@ repositories {
2129 mavenCentral()
2230}
2331
32+ sourceSets {
33+ main {
34+ java. srcDirs = [
35+ ' src/main/java'
36+ ]
37+ }
38+ }
39+
2440android {
2541 compileSdkVersion 24
2642 buildToolsVersion " 24.0.0"
2743
2844 defaultConfig {
29- minSdkVersion 9
30- targetSdkVersion 24
45+ minSdkVersion 23
46+ targetSdkVersion 23
3147 versionCode 1
3248 versionName " 1.0"
3349 }
@@ -37,6 +53,10 @@ android {
3753 targetCompatibility JavaVersion . VERSION_1_6
3854 }
3955
56+ sourceSets {
57+ main. java. srcDirs + = ' src/main/java'
58+ }
59+
4060 buildTypes {
4161 release {
4262 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.txt'
@@ -63,18 +83,14 @@ dependencies {
6383 project(' :libraries:couchbase-lite-java-core' ) :
6484 ' com.couchbase.lite:couchbase-lite-java-core:' + version
6585
66- compile buildAndroidWithArtifacts == null ?
67- project(' :libraries:couchbase-lite-java-native:sqlite-custom' ) :
68- ' com.couchbase.lite:couchbase-lite-android-sqlite-custom:' + version
86+ compile ' com.couchbase.lite:couchbase-lite-android-sqlite-custom:1.4.1'
6987
7088 // Libraries required for tests only:
71- androidTestCompile buildAndroidWithArtifacts == null ?
72- project(' :libraries:couchbase-lite-java-native:sqlcipher' ) :
73- ' com.couchbase.lite:couchbase-lite-android-sqlcipher:' + version
89+ androidTestCompile ' com.couchbase.lite:couchbase-lite-android-sqlcipher:1.4.1'
7490
75- androidTestCompile buildAndroidWithArtifacts == null ?
76- project(' :libraries:couchbase-lite-java-forestdb' ) :
77- ' com.couchbase.lite:couchbase-lite-android-forestdb:' + version
91+ // androidTestCompile buildAndroidWithArtifacts == null ?
92+ // project(':libraries:couchbase-lite-java-forestdb') :
93+ // 'com.couchbase.lite:couchbase-lite-android-forestdb:' + version
7894
7995 androidTestCompile ' commons-io:commons-io:2.0.1'
8096 androidTestCompile ' com.squareup.okhttp3:mockwebserver:3.3.1'
@@ -124,38 +140,38 @@ task createMavenDirectory(type: Exec) {
124140createMavenDirectory. onlyIf { System . getenv(" MAVEN_UPLOAD_REPO_URL" ). contains(" files" ) }
125141
126142// first create the directory, then do the upload
127- task uploadArchivesWrapper (dependsOn : createMavenDirectory) << {
128- uploadArchives. execute()
129- }
130-
131- def mavenPath () {
132- System . getenv(" MAVEN_BUILD_LOCAL" ) == " true" ?
133- ' file://' + new File (System . getProperty(' user.home' ), ' .m2/repository' ). absolutePath :
134- System . getenv(" MAVEN_UPLOAD_REPO_URL" )
135- }
136-
137- // this will upload, but will not first create a directory (which is needed on some servers)
138- uploadArchives {
139- repositories {
140- mavenDeployer {
141- repository(url : mavenPath()) {
142- authentication(userName : System . getenv(" MAVEN_UPLOAD_USERNAME" ), password : System . getenv(" MAVEN_UPLOAD_PASSWORD" ))
143- }
144- pom. version = System . getenv(" MAVEN_UPLOAD_VERSION" ) != null ? System . getenv(" MAVEN_UPLOAD_VERSION" ) : ' '
145- pom. groupId = ' com.couchbase.lite'
146- pom. artifactId = ' couchbase-lite-android'
147- pom. project {
148- licenses {
149- license {
150- name ' Couchbase Community Edition License Agreement'
151- url ' http://www.couchbase.com/agreement/community'
152- distribution ' repo'
153- }
154- }
155- }
156- }
157- }
158- }
143+ // task uploadArchivesWrapper(dependsOn: createMavenDirectory) << {
144+ // uploadArchives.execute()
145+ // }
146+ //
147+ // def mavenPath() {
148+ // System.getenv("MAVEN_BUILD_LOCAL") == "true" ?
149+ // 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath :
150+ // System.getenv("MAVEN_UPLOAD_REPO_URL")
151+ // }
152+ //
153+ // // this will upload, but will not first create a directory (which is needed on some servers)
154+ // uploadArchives {
155+ // repositories {
156+ // mavenDeployer {
157+ // repository(url: mavenPath()) {
158+ // authentication(userName: System.getenv("MAVEN_UPLOAD_USERNAME"), password: System.getenv("MAVEN_UPLOAD_PASSWORD"))
159+ // }
160+ // pom.version = System.getenv("MAVEN_UPLOAD_VERSION") != null ? System.getenv("MAVEN_UPLOAD_VERSION") : ''
161+ // pom.groupId = 'com.couchbase.lite'
162+ // pom.artifactId = 'couchbase-lite-android'
163+ // pom.project {
164+ // licenses {
165+ // license {
166+ // name 'Couchbase Community Edition License Agreement'
167+ // url 'http://www.couchbase.com/agreement/community'
168+ // distribution 'repo'
169+ // }
170+ // }
171+ // }
172+ // }
173+ // }
174+ // }
159175
160176
161177task sourcesJar (type : Jar ) {
0 commit comments