Skip to content

Commit

Permalink
⚡ Enable configuration cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandens committed Aug 21, 2023
1 parent 266371c commit 27b0abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
arguments: --quiet setVersion -PnewVersion=${{ inputs.version }}
arguments: --quiet --no-configuration-cache setVersion -PnewVersion=${{ inputs.version }}

- uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
arguments: --console=plain --quiet build publishNebulaPublicationToSonatypeRepository closeSonatypeStagingRepository
arguments: --console=plain --quiet --no-configuration-cache build publishNebulaPublicationToSonatypeRepository closeSonatypeStagingRepository

# share version bump
- run: |
Expand All @@ -74,7 +74,7 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
arguments: -q bumpPatch applySnapshot
arguments: -q --no-configuration-cache bumpPatch applySnapshot

- run: |
git add version.txt
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configuration-cache=true
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
Expand Down

0 comments on commit 27b0abf

Please sign in to comment.