File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ jobs:
3737 uses : gradle/actions/setup-gradle@v4
3838 with :
3939 develocity-access-key : ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
40- - name : Disable signing on CI
41- run : sed -i 's/isRequired = providers.environmentVariable("CI").isPresent/isRequired = false/' build.gradle.kts
4240 - name : Publish to maven local
43- id : publish_to_maven_local
41+ id : publish-to-maven-local
4442 run : ./gradlew clean publishToMavenLocal -Dgradle.cache.remote.push=false
43+ env :
44+ DISABLE_REQUIRED_SIGNING : true
4545 - name : Modify the project to use the locally published plugin
4646 run : |
4747 sed -i '1i\
5555 sed -i -E 's/(id\("com.gradle.common-custom-user-data-gradle-plugin"\) version )"2[0-9\.]*"/\1"2+"/' settings.gradle.kts
5656
5757 - name : Run a build with the locally published plugin
58- id : build_with_local_plugin
58+ id : build-with-local-plugin
5959 run : ./gradlew clean build -i -Dgradle.cache.remote.push=false
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ You may also remove `plugin-publish` and `signing` from the `plugins {}` block a
9191
9292signing {
9393 // Require publications to be signed on CI. Otherwise, publication will be signed only if keys are provided.
94- isRequired = providers.environmentVariable(" CI" ).isPresent
94+ isRequired = providers.environmentVariable(" CI" ).isPresent &&
95+ providers.environmentVariable(" DISABLE_REQUIRED_SIGNING" ).isPresent.not ()
9596
9697 useInMemoryPgpKeys(
9798 providers.environmentVariable(" PGP_SIGNING_KEY" ).orNull,
You can’t perform that action at this time.
0 commit comments