Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Commit d5a3498

Browse files
author
hideki
committed
Fixed #1163 - ClassNotFound issue
1 parent ed3a594 commit d5a3498

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

android/CouchbaseLite/build.gradle

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ android {
6868
def SUPPORT_LIBRARY_VERSION = "25.3.1"
6969

7070
dependencies {
71-
compile fileTree(dir: 'libs', include: ['*.jar'])
71+
//compile fileTree(dir: 'libs', include: ['*.jar'])
7272
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
7373
exclude group: 'com.android.support', module: 'support-annotations'
7474
})
75-
compile "com.android.support:appcompat-v7:${SUPPORT_LIBRARY_VERSION}"
75+
//compile "com.android.support:appcompat-v7:${SUPPORT_LIBRARY_VERSION}"
7676
compile 'com.squareup.okhttp3:okhttp:3.7.0'
7777
testCompile 'junit:junit:4.12'
7878
}
@@ -218,6 +218,17 @@ publishing {
218218
pom.withXml {
219219
def root = asNode()
220220
root.children().last() + pomConfig
221+
222+
// maven-publish workaround to include dependencies
223+
def dependenciesNode = asNode().appendNode('dependencies')
224+
225+
//Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
226+
configurations.compile.allDependencies.each {
227+
def dependencyNode = dependenciesNode.appendNode('dependency')
228+
dependencyNode.appendNode('groupId', it.group)
229+
dependencyNode.appendNode('artifactId', it.name)
230+
dependencyNode.appendNode('version', it.version)
231+
}
221232
}
222233
}
223234
}

0 commit comments

Comments
 (0)