Skip to content

Commit 5164a1b

Browse files
Adjustments to sign artifacts, release/local repo URL
1 parent 9073e41 commit 5164a1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

android-database-sqlcipher/maven.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ afterEvaluate { project ->
7171
}
7272
repositories {
7373
maven {
74-
def releasesRepoUrl = getReleaseRepositoryUrl()
75-
url = releasesRepoUrl
74+
def repoUrl = isReleaseBuild()
75+
? getReleaseRepositoryUrl()
76+
: getSnapshotRepositoryUrl();
77+
url = repoUrl
7678
credentials {
7779
username = getRepositoryUsername()
7880
password = getRepositoryPassword()
@@ -83,7 +85,7 @@ afterEvaluate { project ->
8385

8486
signing {
8587
required { isReleaseBuild() && gradle.taskGraph.hasTask("publish") }
86-
sign configurations.archives
88+
sign publishing.publications.mavenJava
8789
}
8890

8991
task androidSourcesJar(type: Jar) {

0 commit comments

Comments
 (0)