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

Fix signing bundle with Gradle 8.1 with configuration cache #3069

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

AlexeyTsvetkov
Copy link
Collaborator

Compose Gradle plugin was launching
/usr/bin/security --find-identity in a lazy property of AbstractJPackageTask. Without the configuration cache the computation was delayed to the execution phase. However, configuration cache serializes all properties of all configured tasks, so launching of /usr/bin/security shifted to the configuration phase.
Gradle 8.1 started to throw an exception if an external process is launched during configuration time.
This change explicitly moves the call to
/usr/bin/security to the execution phase.

Resolves #3060

Compose Gradle plugin was launching
`/usr/bin/security --find-identity` in a lazy property of
AbstractJPackageTask. Without the configuration cache
the computation was delayed to the execution phase.
However, configuration cache serializes all properties of
all configured tasks, so launching of `/usr/bin/security`
shifted to the configuration phase.
Gradle 8.1 started to throw an exception if an external process is
launched during configuration time.
This change explicitly moves the call to
`/usr/bin/security` to the execution phase.

Resolves #3060
@AlexeyTsvetkov AlexeyTsvetkov merged commit eb90275 into master Apr 18, 2023
@AlexeyTsvetkov AlexeyTsvetkov deleted the signing-gradle-8-1 branch April 18, 2023 07:46
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

Successfully merging this pull request may close these issues.

Fatal error signing Mac App
2 participants