Skip to content

Commit f97a55c

Browse files
committed
Fix maven publishing
1 parent 1026b34 commit f97a55c

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

android/samples/sample-encryptdb/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ dependencies {
2828
exclude group: 'com.android.support', module: 'support-annotations'
2929
})
3030

31-
debugCompile project(path: ':wcdb', configuration: 'debug')
32-
releaseCompile project(path: ':wcdb', configuration: 'release')
31+
//debugCompile project(path: ':wcdb', configuration: 'debug')
32+
//releaseCompile project(path: ':wcdb', configuration: 'release')
33+
compile 'com.tencent.wcdb:wcdb-android:1.0.0'
3334
compile 'com.android.support:appcompat-v7:25.3.1'
3435
compile 'com.android.support.constraint:constraint-layout:1.0.2'
3536
compile 'com.android.support:design:25.3.1'

android/samples/sample-repairdb/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ dependencies {
2828
exclude group: 'com.android.support', module: 'support-annotations'
2929
})
3030

31-
debugCompile project(path: ':wcdb', configuration: 'debug')
32-
releaseCompile project(path: ':wcdb', configuration: 'release')
31+
//debugCompile project(path: ':wcdb', configuration: 'debug')
32+
//releaseCompile project(path: ':wcdb', configuration: 'release')
33+
compile 'com.tencent.wcdb:wcdb-android:1.0.0'
3334
compile 'com.android.support:appcompat-v7:25.3.1'
3435
compile 'com.android.support.constraint:constraint-layout:1.0.2'
3536
testCompile 'junit:junit:4.12'

android/wcdb/bintray.gradle

+20-6
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,26 @@ publishing {
5555
artifactId 'wcdb-android'
5656
version rootProject.VERSION_NAME
5757

58-
pom.withXml {
59-
def root = asNode()
60-
root.appendNode('description', '')
61-
root.appendNode('name', 'WCDB')
62-
root.appendNode('url', 'https://github.com/Tencent/wcdb')
63-
root.children().last() + pomConfig
58+
pom {
59+
packaging 'aar'
60+
61+
withXml {
62+
def root = asNode()
63+
root.appendNode('description', '')
64+
root.appendNode('name', 'WCDB')
65+
root.appendNode('url', 'https://github.com/Tencent/wcdb')
66+
root.children().last() + pomConfig
67+
68+
def depNode = root.appendNode('dependencies')
69+
configurations.compile.allDependencies.each {
70+
if (it.group != null) {
71+
def dependencyNode = depNode.appendNode('dependency')
72+
dependencyNode.appendNode('groupId', it.group)
73+
dependencyNode.appendNode('artifactId', it.name)
74+
dependencyNode.appendNode('version', it.version)
75+
}
76+
}
77+
}
6478
}
6579
}
6680
}

android/wcdb/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ android {
6060
}
6161

6262
defaultPublishConfig 'release'
63-
publishNonDefault true
63+
//publishNonDefault true
6464
}
6565

6666
dependencies {

0 commit comments

Comments
 (0)