-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Enable configuration caching #14725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable configuration caching #14725
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
|
|
e6711a6 to
04660c6
Compare
|
You have overwritten my changes for creating the directory
qodo-free-for-open-source-projects[bot] ***@***.***> schrieb
am Fr., 26. Dez. 2025, 16:15:
… *qodo-free-for-open-source-projects[bot]* left a comment
(JabRef/jabref#14725)
<#14725 (comment)>
CI Feedback 🧐 (Feedback updated until commit f8c952a
<f8c952a>
)
A test triggered by this PR failed. Here is an AI-generated analysis of
the failure:
*Action:* Unit tests – jabsrv
*Failed stage:* Run jabsrv tests
<https://github.com/JabRef/jabref/actions/runs/20524633149/job/58965712894>
[❌]
*Failure summary:*
The action failed due to a Gradle configuration cache problem.
Specifically:
- Task
:jablib:generateJournalListMV of type dev.jbang.gradle.tasks.JBangTask
cannot serialize Gradle
script object references, which are not supported with the configuration
cache.
- The build
completed successfully up to the test execution phase (14 tests passed),
but failed during the
configuration cache validation.
- The error indicates that the task is trying to store unsupported
object types in the configuration cache, violating Gradle's configuration
cache requirements.
Relevant error logs:
1: ##[group]Runner Image Provisioner2: Hosted Compute Agent
...
407: GRADLE_ACTION_ID: gradle/actions/setup-gradle408: GRADLE_USER_HOME: /home/runner/.gradle409: GRADLE_BUILD_ACTION_SETUP_COMPLETED: true410: GRADLE_BUILD_ACTION_CACHE_RESTORED: true411: DEVELOCITY_INJECTION_INIT_SCRIPT_NAME: gradle-actions.inject-develocity.init.gradle412: DEVELOCITY_INJECTION_CUSTOM_VALUE: gradle-actions413: GITHUB_DEPENDENCY_GRAPH_ENABLED: false414: CI: true415: ##[endgroup]416: Downloading https://files.jabref.org/gradle-9.3.0-jabref-2-bin.zip417: .............10%.............20%.............30%.............40%.............50%.............60%.............70%.............80%.............90%.............100%418: Starting a Gradle Daemon (subsequent builds will be faster)419: Parallel Configuration Cache is an incubating feature.420: Configuration on demand is an incubating feature.421: Calculating task graph as no cached configuration is available for tasks: :jabsrv:check422: > Task :build-logic:checkKotlinGradlePluginConfigurationErrors SKIPPED423: > Task :build-logic:generateExternalPluginSpecBuilders...
927: 2025-12-26 15:14:35 [main] org.gradle.internal.remote.internal.inet.TcpOutgoingConnector.connect()928: DEBUG: Connected to address /127.0.0.1:34987.929: 2025-12-26 15:14:35 [main] org.gradle.process.internal.worker.child.ActionExecutionWorker.execute()930: DEBUG: Starting Gradle Test Executor 2.931: 2025-12-26 15:14:35 [Test worker] org.gradle.api.internal.tasks.testing.worker.TestWorker.execute()932: INFO: Gradle Test Executor 2 started executing tests.933: 2025-12-26 15:14:38 [Test worker] org.gradle.api.internal.tasks.testing.worker.TestWorker.execute()934: INFO: Gradle Test Executor 2 finished executing tests.935: 2025-12-26 15:14:38 [Test worker] org.gradle.process.internal.worker.child.ActionExecutionWorker.execute()936: DEBUG: Completed Gradle Test Executor 2.937: > Task :jabsrv:test938: �[0K�[1;32mSUCCESS: �[39mExecuted 14 tests in 3.9s�[m939: > Task :jabsrv:check940: gradle/actions: Writing build results to /home/runner/work/_temp/.gradle-actions/build-results/__run-1766761925821.json941: [Incubating] Problems report is available at: file:///home/runner/work/jabref/jabref/build/reports/problems/problems-report.html942: FAILURE: Build failed with an exception.943: * What went wrong:944: Configuration cache problems found in this build.945: 1 problem was found storing the configuration cache.946: - Task `:jablib:generateJournalListMV` of type `dev.jbang.gradle.tasks.JBangTask`: cannot serialize Gradle script object references as these are not supported with the configuration cache.947: See https://docs.gradle.org/9.3.0-20251116230000+0000/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types948: See the complete report at file:///home/runner/work/jabref/jabref/build/reports/configuration-cache/44jgmsggpmw14m32dxrwu199x/7q580p5ehuixe6fgajkcv15vz/configuration-cache-report.html949: * Try:950: > Run with --stacktrace option to get the stack trace.951: > Run with --info or --debug option to get more log output.952: > Run with --scan to generate a Build Scan (powered by Develocity).953: > Get more help at https://help.gradle.org.954: BUILD FAILED in 2m 44s955: 23 actionable tasks: 21 executed, 2 from cache956: Configuration cache entry discarded with 1 problem.957: ##[error]Process completed with exit code 1.958: ##[group]Run ***@***.***
...
1261: MedlineAPiKey: ***1262: GRADLE_OPTS: -Xmx4g1263: JAVA_OPTS: -Xmx4g1264: JAVA_HOME: /opt/hostedtoolcache/Java_Corretto_jdk/24.0.2-12.1/x641265: JAVA_HOME_24_X64: /opt/hostedtoolcache/Java_Corretto_jdk/24.0.2-12.1/x641266: GRADLE_ACTION_ID: gradle/actions/setup-gradle1267: GRADLE_USER_HOME: /home/runner/.gradle1268: GRADLE_BUILD_ACTION_SETUP_COMPLETED: true1269: GRADLE_BUILD_ACTION_CACHE_RESTORED: true1270: DEVELOCITY_INJECTION_INIT_SCRIPT_NAME: gradle-actions.inject-develocity.init.gradle1271: DEVELOCITY_INJECTION_CUSTOM_VALUE: gradle-actions1272: GITHUB_DEPENDENCY_GRAPH_ENABLED: false1273: CACHE_KEY: 0d16f28534560fd53ea706208407277c1274: ##[endgroup]1275: Formatting results...1276: No */build/test-results/*.xml files found with failing tests.1277: Post job cleanup.
—
Reply to this email directly, view it on GitHub
<#14725 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACOFZEYSNYOXUHO72RRE234DVGJLAVCNFSM6AAAAACQB4FR32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMOJTGAYDANBZHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Because I included it in the plugin itself. |
Commit removing here: f8c952a Commit adding to plugin: koppor/jbang-gradle-plugin@660863b |
|
I commented on the commit in the plug-in.
You cannot directly use get in the plug-in, you need to use something like
map
Oliver Kopp ***@***.***> schrieb am Fr., 26. Dez. 2025, 17:57:
… *koppor* left a comment (JabRef/jabref#14725)
<#14725 (comment)>
You have overwritten my changes for creating the directory
Because I included it in the plugin itself.
Commit removing here: f8c952a
<f8c952a>
Commit adding to plugin: ***@***.***
<koppor/jbang-gradle-plugin@660863b>
—
Reply to this email directly, view it on GitHub
<#14725 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACOFZCBGDG5S2EKTP7UW7L4DVSGNAVCNFSM6AAAAACQB4FR32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMOJTGEYDSMZQHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Current state: Refs gradle/gradle#20930 |
|
So with the latest changes this worked |
| implementation("com.adarshr:gradle-test-logger-plugin:4.0.0") | ||
| implementation("com.autonomousapps:dependency-analysis-gradle-plugin:3.5.1") | ||
| implementation("com.github.andygoossens:gradle-modernizer-plugin:1.12.0") | ||
| implementation("com.github.koppor:jbang-gradle-plugin:jitpack-SNAPSHOT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinned commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Raises error when gradlew runs - plugin says jitpack-SNAPSHOT, but outputs commit id.
User description
Now that jbangdev/jbang-gradle-plugin#7 is fixed in the respective
mainwe can use configuration caching 🎉Ports jbangdev/jbang-gradle-plugin#21 to here.
Steps to test
./gradlew --rerun-tasks :jablib:generateJournalListMV./gradlew :jabgui:run.Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)PR Type
Enhancement
Description
Enable Gradle configuration caching for improved build performance
Replace custom download task with gradle-download-plugin
Update jbang-gradle-plugin to latest version
Reorder plugin application in module configuration
Diagram Walkthrough
File Walkthrough
build.gradle.kts
Add gradle-download-plugin dependencybuild-logic/build.gradle.kts
build.gradle.kts
Add download plugin and update jbang pluginjablib/build.gradle.kts
org.jabref.gradle.feature.download.gradle.kts
Create download feature plugin configurationbuild-logic/src/main/kotlin/org.jabref.gradle.feature.download.gradle.kts
org.jabref.gradle.module.gradle.kts
Reorder plugin application sequencebuild-logic/src/main/kotlin/org.jabref.gradle.module.gradle.kts
gradle.properties
Enable Gradle configuration cachinggradle.properties
build.gradle.kts
Replace custom download with gradle-download-pluginjablib/build.gradle.kts
implementation