File tree Expand file tree Collapse file tree 2 files changed +21
-25
lines changed Expand file tree Collapse file tree 2 files changed +21
-25
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ jobs:
32
32
- name : Grant execute permission for push
33
33
run : chmod +x push_javadoc.sh
34
34
- name : Build and Snapshot branch
35
- run : ./gradlew -PreleaseMode=branch -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build --stacktrace
35
+ run : ./gradlew -PreleaseMode=branch build --stacktrace --no-daemon
36
+ - name : Upload Snapshot
37
+ run : ./gradlew -PreleaseMode=branch javadocCleanup uploadArchives --no-daemon --no-parallel --stacktrace
36
38
env :
37
39
# Define secrets at https://github.com/ReactiveX/RxJava/settings/secrets/actions
38
40
# ------------------------------------------------------------------------------
39
- bintrayUser : ${{ secrets.BINTRAY_USER }}
40
- bintrayKey : ${{ secrets.BINTRAY_KEY }}
41
- sonatypeUsername : ${{ secrets.SONATYPE_USER }}
42
- sonatypePassword : ${{ secrets.SONATYPE_PASSWORD }}
41
+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USER }}
42
+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
43
43
- name : Upload to Codecov
44
44
uses : codecov/codecov-action@v1
45
45
- name : Push Javadocs
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ plugins {
7
7
id(" ru.vyarus.animalsniffer" ) version " 1.5.3"
8
8
id(" me.champeau.gradle.jmh" ) version " 0.5.3"
9
9
id(" com.github.hierynomus.license" ) version " 0.15.0"
10
- id(" com.jfrog.artifactory" ) version " 4.21.0"
11
10
id(" biz.aQute.bnd.builder" ) version " 5.3.0"
12
11
id(" com.vanniktech.maven.publish" ) version " 0.15.1"
13
12
}
@@ -209,27 +208,24 @@ if (rootProject.hasProperty("releaseMode")) {
209
208
logger. lifecycle(" ReleaseMode: {}" , rootProject. releaseMode)
210
209
211
210
if (" branch" . equals(rootProject. releaseMode)) {
212
- // From https://github.com/ReactiveX/RxAndroid/blob/2.x/rxandroid/build.gradle#L94
213
- artifactory {
214
- contextUrl = " https://oss.jfrog.org"
215
-
216
- publish {
217
- repository {
218
- repoKey = " oss-snapshot-local"
219
-
220
- username = rootProject. bintrayUser
221
- password = rootProject. bintrayKey
222
- }
223
-
224
- defaults {
225
- publishConfigs(" archives" )
226
- }
227
-
228
- fixPom()
211
+
212
+ if (version. endsWith(" -SNAPSHOT" )) {
213
+ fixPom()
214
+
215
+ publishing {
216
+ repositories {
217
+ maven {
218
+ url = " https://s01.oss.sonatype.org/content/repositories/snapshots/"
219
+ }
229
220
}
221
+ }
222
+
223
+ mavenPublish {
224
+ nexus {
225
+ stagingProfile = " io.reactivex"
226
+ }
227
+ }
230
228
}
231
-
232
- build. finalizedBy(artifactoryPublish)
233
229
}
234
230
235
231
if (" full" . equals(rootProject. releaseMode)) {
You can’t perform that action at this time.
0 commit comments