1
0
mirror of https://github.com/square/okhttp.git synced 2026-10-24 07:59:29 +03:00
Files
Yuri Schimke a3281017d9 Enable Gradle Configuration Cache — by refactoring OSGi/BND plugin (#9310)
* Enable Gradle Configuration Cache by refactoring OSGi/BND plugin

This commit enables Gradle's Configuration Cache feature, which was blocked by the BND (OSGi bundle) plugin's incompatibility.

The key changes are:
- A new `BndBuildAction` class is introduced. This class is a static, configuration-cache-compatible replacement for the BND plugin's default build action.
- The `Osgi.kt` build logic is refactored to use this new `BndBuildAction` instead of directly calling the BND plugin's action, which was not serializable.
- The `STABLE_CONFIGURATION_CACHE` feature preview is enabled in `settings.gradle.kts`.
- Gradle properties are updated to enable the configuration cache (`org.gradle.configuration-cache=true`).

* cleanup

* fixes

* fixes
2026-02-05 09:17:33 +00:00
..