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

External process issue with gradle configuration cache enabled #95

Open
anr2me opened this issue Jun 9, 2024 · 2 comments
Open

External process issue with gradle configuration cache enabled #95

anr2me opened this issue Jun 9, 2024 · 2 comments

Comments

@anr2me
Copy link

anr2me commented Jun 9, 2024

With org.gradle.configuration-cache=true in gradle.properties file.
Using androidGitVersion.name() or androidGitVersion.code() in build.gradle file will triggers this issue:

2 problems were found storing the configuration cache.
- Build file 'android/build.gradle': line 64: external process started 'git --version'
  See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Build file 'android/build.gradle': line 64: external process started 'git config --system --edit'
  See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:external_processes

According to the linked docs, in order to solve external process started 'git --version' issue can use:

def gitVersion = providers.exec {
    commandLine("git", "--version")
}.standardOutput.asText.get()

But how can we do this when using com.gladed.androidgitversion plugin?

@jpilgrim-eng
Copy link

I'm having the same problem

@omniuni
Copy link

omniuni commented Jul 15, 2024

This is occurring for me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants