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

Gradle 8 compatibility: replace execResult -> executionResult #55

Closed
wants to merge 2 commits into from

Conversation

zbynek
Copy link
Contributor

@zbynek zbynek commented Apr 21, 2023

Fixes #54

@mohammad-haque
Copy link

@zbynek any idea when you might merge this PR that resolve the gradle 8 issue?

@zbynek
Copy link
Contributor Author

zbynek commented May 9, 2023

@mohammad-haque I don't have merge rights in this repo. Meanwhile you can maybe test my PR with Jitpack.

@zbynek
Copy link
Contributor Author

zbynek commented Jun 11, 2023

@piotrmadry will you have time to check this?

@ThomasRichtsfeld
Copy link

Would be great if we can get this merged 🙇

@@ -43,7 +43,7 @@ class FirebaseTestLabPlugin : Plugin<Project> {
isIgnoreExitValue = true

doLast {
execResult?.let {
executionResult?.let {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

executionResult returns a provider now and is non-nullable.

 if (executionResult.get().exitValue != 0) {
        println(standardOutput.toString())
        throw GradleException("exec failed; see output above")
 }

Copy link

@tassilo-posegga tassilo-posegga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will not compile as the return type of executionResult is now Provider<ExecResult> instead of ExecResult

@zbynek
Copy link
Contributor Author

zbynek commented Apr 11, 2024

@tassilo-posegga I updated this PR with your suggestion, thanks! As the README meanwhile says, this plugin is no longer maintained.

EDIT: I released a fork of this plugin that includes this PR and #53 -- If you want to use it you can just update the plugin ID in your Gradle files, see https://plugins.gradle.org/plugin/io.github.zbynek.firebase for details.

My understanding is that as of Gradle 8 with the latest Android plugin it's possible to use Firebase devices directly, so hopefully this plugin won't be needed for much longer. However, I still think it's useful to have at least one release of this plugin compatible with Gradle 8 to make incremental update of tooling possible.

Closing this PR since repo is no longer maintained.

@zbynek zbynek closed this Apr 11, 2024
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.

java.lang.NoSuchMethodError: FirebaseTestLabPlugin$HiddenExec.getExecResult
4 participants