Skip to content

Commit

Permalink
Merge pull request #38561 from gsmet/shortcut-disable-cache
Browse files Browse the repository at this point in the history
Provide a -Dno-build-cache shortcut do disable the build cache
  • Loading branch information
gastaldi authored Feb 2, 2024
2 parents fe816f8 + d3a44a4 commit 9bd44c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .mvn/gradle-enterprise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<!-- build scan publication is configured in gradle-enterprise-custom-user-data.groovy
to leverage options to disable build scan publication for test builds
-->
<!--
Expression support is documented here: https://docs.gradle.com/enterprise/maven-extension/#expression_support
-->
<obfuscation>
<!-- Don't share ip addresses-->
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
Expand All @@ -23,10 +26,10 @@
</buildScan>
<buildCache>
<local>
<enabled>#{env['GRADLE_LOCAL_BUILD_CACHE'] != null and env['RELEASE_GITHUB_TOKEN'] == null}</enabled>
<enabled>#{env['GRADLE_LOCAL_BUILD_CACHE'] != null and env['RELEASE_GITHUB_TOKEN'] == null and properties['no-build-cache'] == null}</enabled>
</local>
<remote>
<enabled>#{env['RELEASE_GITHUB_TOKEN'] == null}</enabled>
<enabled>#{env['RELEASE_GITHUB_TOKEN'] == null and properties['no-build-cache'] == null}</enabled>
<storeEnabled>#{env['CI'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != '' and env['RELEASE_GITHUB_TOKEN'] == null}</storeEnabled>
</remote>
</buildCache>
Expand Down

0 comments on commit 9bd44c2

Please sign in to comment.