Skip to content

Commit f166f7b

Browse files
committed
Do not use build cache when releasing
1 parent 8f0833a commit f166f7b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.mvn/gradle-enterprise.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
</buildScan>
2424
<buildCache>
2525
<local>
26-
<enabled>#{env['GRADLE_LOCAL_BUILD_CACHE'] != null}</enabled>
26+
<enabled>#{env['GRADLE_LOCAL_BUILD_CACHE'] != null and env['RELEASE_GITHUB_TOKEN'] == null}</enabled>
2727
</local>
2828
<remote>
29-
<enabled>true</enabled>
30-
<storeEnabled>#{env['CI'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != ''}</storeEnabled>
29+
<enabled>#{env['RELEASE_GITHUB_TOKEN'] == null}</enabled>
30+
<storeEnabled>#{env['CI'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != '' and env['RELEASE_GITHUB_TOKEN'] == null}</storeEnabled>
3131
</remote>
3232
</buildCache>
3333
</gradleEnterprise>

0 commit comments

Comments
 (0)