File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 SONATYPE_KEY : ${{ secrets.SONATYPE_KEY }}
3535 GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
3636 GPG_PASSWORD : ${{ secrets.GPG_PASSWORD }}
37- DEVELOCITY_ACCESS_KEY : ${{ secrets.DEVELOCITY_ACCESS_KEY }}
37+ # disable gradle build cache, ensuring we're building from source to mitigate supply chain risk
38+ DISABLE_REMOTE_BUILD_CACHE : true
3839
3940 workflow-notification :
4041 permissions :
Original file line number Diff line number Diff line change 3737 SONATYPE_KEY : ${{ secrets.SONATYPE_KEY }}
3838 GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
3939 GPG_PASSWORD : ${{ secrets.GPG_PASSWORD }}
40- DEVELOCITY_ACCESS_KEY : ${{ secrets.DEVELOCITY_ACCESS_KEY }}
40+ # disable gradle build cache, ensuring we're building from source to mitigate supply chain risk
41+ DISABLE_REMOTE_BUILD_CACHE : true
4142
4243 - name : Set environment variables
4344 run : |
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ include(":animal-sniffer-signature")
7575val develocityServer = " https://develocity.opentelemetry.io"
7676val isCI = System .getenv(" CI" ) != null
7777val develocityAccessKey = System .getenv(" DEVELOCITY_ACCESS_KEY" ) ? : " "
78+ val disableRemoteBuildCache = System .getenv(" DISABLE_REMOTE_BUILD_CACHE" ) != null
7879
7980develocity {
8081 if (develocityAccessKey.isNotEmpty()) {
@@ -110,6 +111,7 @@ develocity {
110111buildCache {
111112 remote(HttpBuildCache ::class ) {
112113 url = uri(" $develocityServer /cache/" )
114+ isEnabled = ! disableRemoteBuildCache
113115 isPush = isCI && develocityAccessKey.isNotEmpty()
114116 }
115117}
You can’t perform that action at this time.
0 commit comments