Skip to content

Commit 711bfd2

Browse files
Initial work on maven publishing
1 parent fe1bd3e commit 711bfd2

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

android-database-sqlcipher/build.gradle

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.library"
2+
apply plugin: "maven-publish"
23
apply from: "native.gradle"
34

45
android {
@@ -43,3 +44,55 @@ android {
4344
}
4445

4546
}
47+
48+
publishing {
49+
publications {
50+
sqlcipher(MavenPublication) {
51+
groupId "net.zetetic"
52+
artifactId "android-database-sqlcipher"
53+
version "${clientVersionNumber}"
54+
artifact("$buildDir/outputs/aar/${archivesBaseName}-${clientVersionNumber}.aar")
55+
pom.withXml {
56+
asNode().children().last() + {
57+
resolveStrategy = Closure.DELEGATE_FIRST
58+
name "android-database-sqlcipher"
59+
description "SQLCipher for Android is a plugin to SQLite that provides full database encryption."
60+
url "https://www.zetetic.net/sqlcipher"
61+
scm {
62+
url "https://github.com/sqlcipher/android-database-sqlcipher.git"
63+
connection "scm:git:https://github.com/sqlcipher/android-database-sqlcipher.git"
64+
developerConnection "scm:git:https://github.com/sqlcipher/android-database-sqlcipher.git"
65+
}
66+
licenses {
67+
license {
68+
url "https://www.zetetic.net/sqlcipher/license/"
69+
}
70+
}
71+
developers {
72+
developer {
73+
name "Zetetic Support"
74+
email "support@zetetic.net"
75+
organization "Zetetic LLC"
76+
organizationUrl "https://www.zetetic.net/"
77+
}
78+
}
79+
distributionManagement {
80+
snapshotRepository {
81+
id "ossrh"
82+
url "https://oss.sonatype.org/content/repositories/snapshots"
83+
}
84+
repository {
85+
id "ossrh"
86+
url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
87+
}
88+
}
89+
}
90+
}
91+
}
92+
}
93+
repositories {
94+
maven {
95+
url "$buildDir/repo"
96+
}
97+
}
98+
}

0 commit comments

Comments
 (0)