Skip to content
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

Support Gradle's configuration cache #35

Closed
Goooler opened this issue Nov 23, 2022 · 4 comments
Closed

Support Gradle's configuration cache #35

Goooler opened this issue Nov 23, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Goooler
Copy link

Goooler commented Nov 23, 2022

https://docs.gradle.org/7.5.1/userguide/configuration_cache.html

@kymjs kymjs added the enhancement New feature or request label Nov 24, 2022
@kymjs
Copy link
Collaborator

kymjs commented Mar 21, 2024

org.gradle.unsafe.configuration-cache=true
org.gradle.configuration-cache=true
org.gradle.unsafe.configuration-cache-problems=warn
org.gradle.unsafe.configuration-cache.max-problems=5

@Goooler
Copy link
Author

Goooler commented Mar 21, 2024

用到的项目开 org.gradle.configuration-cache=true 或者 org.gradle.unsafe.configuration-cache=true ,然后你们要在集成测试中开启 CC 标记位进行测试,可以参考 GradleUp/shadow#824

@Goooler
Copy link
Author

Goooler commented Mar 21, 2024

添加 org.gradle.unsafe.configuration-cache-problems=warn 只是让 Gradle 统计 CC 的问题之后不要抛出异常,并没有真正解决问题,注意这只是一个 workaround.

@kymjs
Copy link
Collaborator

kymjs commented Jul 24, 2024

@kymjs kymjs closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants