File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,12 @@ jobs:
3333 id : stage-spring-pulsar-docs
3434 shell : bash
3535 run : |
36- ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository \
37- --rerun-tasks --no-build-cache \
36+ sed -i '' "s/version=2.0.1-SNAPSHOT/version=2.0.0/g" gradle.properties
37+ cat gradle.properties
38+ ./gradlew \
39+ -PdeploymentRepository=$(pwd)/deployment-repository \
40+ -PforceLocalPublish=true \
3841 :spring-pulsar-docs:publishAllPublicationsToDeploymentRepository
39- echo "pwd = $(pwd)"
40- echo "-PdeploymentRepository=$(pwd)/deployment-repository"
4142 echo "deployRepo=$(pwd)/deployment-repository" >> $GITHUB_OUTPUT
4243 echo "ls -R $(pwd)/deployment-repository"
4344 ls -R $(pwd)/deployment-repository
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ artifactoryPublish {
108108}
109109
110110tasks. withType(PublishToMavenRepository ). configureEach {
111- enabled = ProjectUtils . isSnapshot(project)
111+ enabled = ProjectUtils . isSnapshot(project) || project . hasProperty( ' forceLocalPublish ' )
112112}
113113
114114tasks. withType(PublishToMavenLocal ). configureEach {
115- enabled = ProjectUtils . isSnapshot(project)
115+ enabled = ProjectUtils . isSnapshot(project) || project . hasProperty( ' forceLocalPublish ' )
116116}
You can’t perform that action at this time.
0 commit comments