Skip to content

Commit 8bee5f5

Browse files
committed
Mark the output changelog task as not compatible with the configuration cache
1 parent 84bd9a5 commit 8bee5f5

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,22 @@ jobs:
5151
build/neoForm
5252
~/.gradle
5353
.gradle
54+
- name: Validate Gradle Wrapper
55+
uses: gradle/actions/wrapper-validation@v3
5456
- name: Setup Java
5557
uses: actions/setup-java@v4
5658
with:
5759
java-version: 21
5860
distribution: 'temurin'
5961
settings-path: ${{ github.workspace }} # location for the settings.xml file
6062

61-
- name: Build with Gradle
62-
uses: gradle/gradle-build-action@v3
63+
- name: Setup Gradle
64+
uses: gradle/actions/setup-gradle@v3
6365
with:
64-
arguments: build outputChangelog
65-
gradle-version: wrapper
6666
cache-read-only: false
67+
68+
- name: Build with Gradle
69+
run: ./gradlew build outputChangelog
6770
env:
6871
BUILD_NUMBER: ${{ github.run_number }}
6972
GIT_COMMIT: ${{ github.sha }}
@@ -86,11 +89,7 @@ jobs:
8689
target_commitish: ${{ github.sha }}
8790

8891
- name: Publish
89-
uses: gradle/gradle-build-action@v3
90-
with:
91-
arguments: curseforge modrinth publish
92-
gradle-version: wrapper
93-
cache-read-only: false
92+
run: ./gradlew curseforge modrinth publish
9493
env:
9594
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
9695
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ def changeLogResolver = { ->
645645
}
646646

647647
tasks.register('outputChangelog') {
648+
//TODO: Can we make this compatible with the configuration cache?
649+
notCompatibleWithConfigurationCache('Not yet compatible')
648650
doLast {
649651
project.file('build/changelog.md').text = changeLogResolver.call()
650652
}

0 commit comments

Comments
 (0)