cianru / huawei-appgallery-publish-gradle-plugin

Huawei AppGallery Publish Gradle Plugin allows you to publish the android release build file (*.apk or *.aab) to the Huawei AppGallery store
Apache License 2.0
111 stars 20 forks source link

Missing dependency on bundle* task #26

Closed rtsisyk closed 2 years ago

rtsisyk commented 3 years ago
/gradlew bundleHuaweiRelease publishHuaweiAppGalleryHuaweiRelease

[REDACTED]

[953/953] Linking CXX shared library ../../../../build/intermediates/cmake/huaweiRelease/obj/arm64-v8a/libmapswithme.so

> Task :mergeHuaweiReleaseJniLibFolders
> Task :collectHuaweiReleaseDependencies
> Task :configureHuaweiReleaseDependencies
> Task :parseHuaweiReleaseIntegrityConfig
> Task :validateSigningHuaweiRelease

> Task :publishHuaweiAppGalleryHuaweiRelease FAILED
Huawei AppGallery Publishing API: Generate Config

> Task :mergeHuaweiReleaseNativeLibs

FAILURE: Build failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

Use '--warning-mode all' to show the individual deprecation warnings.
* What went wrong:
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings
Execution failed for task ':publishHuaweiAppGalleryHuaweiRelease'.
36 actionable tasks: 36 executed
> java.io.FileNotFoundException: /home/runner/work/organicmaps/organicmaps/android/build/outputs/bundle/huaweiRelease/OrganicMaps-21080515-huawei-release.aab (No such file or directory). Please run `assemble*` or `bundle*` task to build the application file before current task.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 51m 0s
Error: Process completed with exit code 1.
0s
cosic commented 3 years ago

@rtsisyk Hi! Could you give more info about Kotlin, Gradle and AGP versions witch you are using?

rtsisyk commented 3 years ago

com.android.tools.build:gradle:4.1.3

On Mon, Aug 9, 2021 at 8:54 PM Aleksandr Mirko @.***> wrote:

@rtsisyk https://github.com/rtsisyk Hi! Could you give more info about Kotlin, Gradle and AGP versions witch you are using?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cianru/huawei-publish-gradle-plugin/issues/26#issuecomment-895420819, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANXHDS7MKPNN66MLI3S4R3T4AI55ANCNFSM5BVKCMSA .

-- WBR, Roman Tsisyk @.***>

cosic commented 3 years ago

@rtsisyk Hi! Is your problem still relevant? If yes, please

  1. Check that you build aab file was build and it exist before execute the Plugin publish* task
  2. Show output command ls -la /home/runner/work/organicmaps/organicmaps/android/build/outputs/bundle/huaweiRelease/
  3. As a workaround, you can use the plugin's buildFile parameter to specify the location of the aab file.
rtsisyk commented 3 years ago

Yes, this problem is still relevant. publishHuaweiAppGalleryHuaweiRelease doesn't depend on bundleHuaweiRelease. Sometimes bundleHuaweiRelease finishes earlier than publishHuaweiAppGalleryHuaweiRelease and uploading works, sometime not.

Currently, I am doing "bundle" and "publish" it two separate Gradle runs:

./gradlew bundleHuaweiRelease
./gradlew publishHuaweiAppGalleryHuaweiRelease

At the same time Triple-T doesn't have such problem and I just run "bundle" and "publish" in the single gradle run:

 ./gradlew bundleGoogleRelease publishGoogleReleaseBundle

I haven't found how to add dependency in my build.gradle. But this is really a minor issue, feel free to ignore.

cosic commented 2 years ago

Fixed at v1.3.1