File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v3
14
14
15
- - name : ' Publish the artifacts for Android'
15
+ - name : ' Publish Android libraries '
16
16
env :
17
17
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME }}
18
18
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD : ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD }}
19
19
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
20
20
ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.ORG_GRADLE_PROJECT_signingPassword }}
21
- run : ./gradlew publishReleasePublicationToMavenRepository --no-daemon
21
+ run : ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon
22
22
23
23
env :
24
24
GRADLE_OPTS : -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
Original file line number Diff line number Diff line change 1
1
GROUP =com.petersamokhin.vksdk.android
2
- VERSION_NAME =0.0.3
2
+ VERSION_NAME =0.0.3-SNAPSHOT
3
3
4
4
REPOSITORY_URL_MAVEN_STAGING_DEFAULT =https://oss.sonatype.org/service/local/staging/deploy/maven2/
5
5
REPOSITORY_URL_MAVEN_SNAPSHOT_DEFAULT =https://oss.sonatype.org/content/repositories/snapshots/
Original file line number Diff line number Diff line change 1
1
apply plugin : ' signing'
2
2
3
3
afterEvaluate {
4
- signing {
5
- required { ! project. VERSION_NAME . endsWith(' SNAPSHOT' ) }
6
-
7
- def signingKey = project. signingKey
8
- def signingPassword = project. signingPassword
9
- useInMemoryPgpKeys(signingKey, signingPassword)
10
-
11
- sign publishing. publications. release
12
- sign configurations. archives
13
- }
14
-
15
4
publishing {
16
5
publications {
17
6
release(MavenPublication ) {
@@ -52,8 +41,10 @@ afterEvaluate {
52
41
}
53
42
repositories {
54
43
maven {
55
- def releasesRepoUrl = project. REPOSITORY_URL_MAVEN_STAGING_DEFAULT
56
- def snapshotsRepoUrl = project. REPOSITORY_URL_MAVEN_SNAPSHOT_DEFAULT
44
+ name = ' mavenCentral'
45
+
46
+ def releasesRepoUrl = project. findProperty(' REPOSITORY_URL_MAVEN_STAGING_DEFAULT' )
47
+ def snapshotsRepoUrl = project. findProperty(' REPOSITORY_URL_MAVEN_SNAPSHOT_DEFAULT' )
57
48
58
49
url = project. VERSION_NAME . endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
59
50
@@ -66,4 +57,15 @@ afterEvaluate {
66
57
}
67
58
}
68
59
}
60
+
61
+ signing {
62
+ required { ! project. VERSION_NAME . endsWith(' SNAPSHOT' ) }
63
+
64
+ def signingKey = project. findProperty(' signingKey' )
65
+ def signingPassword = project. findProperty(' signingPassword' )
66
+ useInMemoryPgpKeys(signingKey, signingPassword)
67
+
68
+ sign publishing. publications. release
69
+ sign configurations. archives
70
+ }
69
71
}
You can’t perform that action at this time.
0 commit comments