TWiStErRob / net.twisterrob.gradle

Quality plugin for Gradle that supports Android flavors
https://github.com/TWiStErRob/net.twisterrob.gradle#features
The Unlicense
18 stars 5 forks source link

Android GIT Gradle CC cannot execute git.exe #511

Closed TWiStErRob closed 9 months ago

TWiStErRob commented 1 year ago

Run AndroidVersionPluginIntgTest#build version is used from GIT revision number (release) with configuration cache on.

Cause 1: org.gradle.api.InvalidUserCodeException: Starting an external process 'P:\tools\vcs\git\bin\git.exe --version' during configuration time is unsupported.
Cause 2: org.gradle.api.InvalidUserCodeException: Starting an external process 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z' during configuration time is unsupported.

test.zip

TWiStErRob commented 11 months ago

gradlew build --rerun-tasks --configuration-cache on BLT e0fbd5e949b548812beacd9b6bf84ef86543a64d

* What went wrong:
Configuration cache problems found in this build.

6 problems were found storing the configuration cache, 3 of which seem unique.
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe --version'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Task `:Android:calculateBuildConfigVCSRevisionInfo` of type `net.twisterrob.gradle.android.tasks.CalculateVCSRevisionInfoTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

See the complete report at file:///P:/projects/workspace/net.twisterrob.travel/build/reports/configuration-cache/da9a041wx8qmie0twfslu1yqi/c5wz1t5wt6izr3yq6wci1mt8j/configuration-cache-report.html
> Starting an external process 'P:\tools\vcs\git\bin\git.exe --version' during configuration time is unsupported.
> Starting an external process 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z' during configuration time is unsupported.
> Invocation of 'Task.project' by task ':Android:calculateBuildConfigVCSRevisionInfo' at execution time is unsupported.

configuration-cache-report.zip

TWiStErRob commented 11 months ago

Same problem and solution: https://discuss.gradle.org/t/using-jgit-with-gradle-configuration-cache/45410

TWiStErRob commented 9 months ago

gradlew on Inventory:

* What went wrong:
Configuration cache problems found in this build.

2 problems were found storing the configuration cache.
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe --version'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes

See the complete report at file:///P:/projects/workspace/net.twisterrob.inventory/build/reports/configuration-cache/99r5mkyrgexbclzvyor0xwldv/9y1w7dbbpyyzzx59spqiirgu0/configuration-cache-report.html
> Starting an external process 'P:\tools\vcs\git\bin\git.exe --version' during configuration time is unsupported.
> Starting an external process 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z' during configuration time is unsupported.