File tree 2 files changed +14
-3
lines changed
android-database-sqlcipher
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ publish-remote-release:
87
87
-PopensslAndroidLibRoot=" $( OPENSSL_ANDROID_LIB_ROOT) " \
88
88
-PsqlcipherCFlags=" $( SQLCIPHER_CFLAGS) " \
89
89
-PsqlcipherAndroidClientVersion=" $( SQLCIPHER_ANDROID_VERSION) " \
90
- uploadArchives
90
+ android-database-sqlcipher:publish
91
91
92
92
collect-nexus-info := \
93
93
read -p "Enter Nexus username:" nexusUsername; \
Original file line number Diff line number Diff line change @@ -42,9 +42,10 @@ afterEvaluate { project ->
42
42
publishing {
43
43
publications {
44
44
mavenJava(MavenPublication ) {
45
+ from components. release
45
46
groupId = mavenGroup
46
47
artifactId = mavenArtifactId
47
- version = mavenPomDescription
48
+ version = mavenVersionName
48
49
pom {
49
50
name = mavenArtifactId
50
51
description = mavenPomDescription
@@ -68,10 +69,20 @@ afterEvaluate { project ->
68
69
}
69
70
}
70
71
}
72
+ repositories {
73
+ maven {
74
+ def releasesRepoUrl = getReleaseRepositoryUrl()
75
+ url = releasesRepoUrl
76
+ credentials {
77
+ username = getRepositoryUsername()
78
+ password = getRepositoryPassword()
79
+ }
80
+ }
81
+ }
71
82
}
72
83
73
84
signing {
74
- required { isReleaseBuild() }
85
+ required { isReleaseBuild() && gradle . taskGraph . hasTask( " publish " ) }
75
86
sign configurations. archives
76
87
}
77
88
You can’t perform that action at this time.
0 commit comments