File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,13 @@ before_deploy: openssl aes-256-cbc -K $encrypted_a8202a3d8441_key -iv $encrypted
20
20
deploy :
21
21
- provider : script
22
22
skip_cleanup : true
23
- script : bash deploy.sh
23
+ script : " ./gradlew publishToNexus uploadDocumentation closeAndReleaseRepository -s -Psigning.keyId=$SIGNING_KEY_ID -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=$TRAVIS_BUILD_DIR/secring.gpg "
24
24
on :
25
25
jdk : openjdk11
26
- tags : true
26
+ tags : true
27
+ - provider : script
28
+ skip_cleanup : true
29
+ script : " ./gradlew publishToNexus uploadDocumentation -s -Psigning.keyId=$SIGNING_KEY_ID -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=$TRAVIS_BUILD_DIR/secring.gpg"
30
+ on :
31
+ jdk : openjdk11
32
+ tags : false
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ allprojects {
47
47
signing {
48
48
required { ! version. endsWith(' SNAPSHOT' ) && gradle. taskGraph. hasTask(" publish" ) }
49
49
}
50
-
50
+
51
51
publishing {
52
52
publications. withType(MavenPublication ) {
53
53
pom {
@@ -123,3 +123,15 @@ nexusStaging {
123
123
password = findProperty(' ossrhPass' )
124
124
}
125
125
126
+ task uploadDocumentation (type : DefaultTask ) {
127
+ dependsOn " aggregateJavadocJar"
128
+ doLast {
129
+ project. exec {
130
+ executable " curl"
131
+ args " --http1.1"
132
+ args " --user" , " user:${ findProperty('freefairDocsPass')} "
133
+ args " --upload-file" , aggregateJavadocJar. archiveFile. get(). asFile
134
+ args " https://docs.freefair.io/api/$project . version ?path=okhttp-spring-boot"
135
+ }
136
+ }
137
+ }
You can’t perform that action at this time.
0 commit comments