openmobilehub / android-omh-storage

https://www.openmobilehub.org
Apache License 2.0
4 stars 1 forks source link

could not resolve gradle plugin #53

Closed VishnuSanal closed 3 months ago

VishnuSanal commented 4 months ago

I am getting the following error:

Could not find com.openmobilehub.android.storage:plugin-googledrive-gms:2.0.0.
Required by:
    project :app

find the full logs here (password: "password")

full code: https://github.com/TeamAmaze/AmazeFileManager/compare/omh-integration...omh-storage-integration

here are my gradle dependencies:

implementation("com.openmobilehub.android.auth:plugin-google-gms:2.0.0")
implementation("com.openmobilehub.android.auth:plugin-google-non-gms:2.0.0")
implementation("com.openmobilehub.android.storage:plugin-googledrive-gms:2.0.0")
implementation("com.openmobilehub.android.storage:plugin-googledrive-non-gms:2.0.0")

I have tried adding the following too, but the same result

implementation("com.openmobilehub.android.storage:core:2.0.0")
implementation("com.openmobilehub.android.auth:core:2.0.2")

I followed this guide.

additionally, the link to plugin provided in the readme gives a 404 too: https://central.sonatype.com/artifact/com.openmobilehub.android.storage/core

ping @dzuluaga

dzuluaga commented 4 months ago

Hi @VishnuSanal, Thank you for your work! I've noticed that the libraries haven't been published to Maven Central yet. In the meantime, you can publish them locally by following the instructions here.

Hello @Nataliagros, @andrei-zgirvaci, and @maciekBudzinski, Do you have an estimated timeline for when the storage modules will be available on Maven Central?

CC - @prestonlau @itsme291

Nataliagros commented 4 months ago

Hi Diego, we plan to release Storage module to Maven Central at the beginning of August. Thanks!

dzuluaga commented 4 months ago

Thanks, @Nataliagros.

@VishnuSanal let us know if you're still blocked.

VishnuSanal commented 4 months ago

hi @dzuluaga, I am still blocked I am afraid. I cannot publish to maven local. I am getting the following error when running ./gradlew publishToMavenLocal.

error log ``` FAILURE: Build completed with 5 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':packages:core:signReleasePublication'. > Cannot perform signing task ':packages:core:signReleasePublication' because it has no configured signatory * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':packages:plugin-dropbox:signReleasePublication'. > Cannot perform signing task ':packages:plugin-dropbox:signReleasePublication' because it has no configured signatory * 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. ============================================================================== 3: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':packages:plugin-googledrive-gms:signReleasePublication'. > Cannot perform signing task ':packages:plugin-googledrive-gms:signReleasePublication' because it has no configured signatory * 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. ============================================================================== 4: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':packages:plugin-googledrive-non-gms:signReleasePublication'. > Cannot perform signing task ':packages:plugin-googledrive-non-gms:signReleasePublication' because it has no configured signatory * 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. ============================================================================== 5: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':packages:plugin-onedrive:signReleasePublication'. > Cannot perform signing task ':packages:plugin-onedrive:signReleasePublication' because it has no configured signatory * 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. ============================================================================== ```

I have generated a key & these were the steps I followed.

  1. gpg --export-secret-keys >~/.gnupg/secring.gpg
  2. gpg --list-secret-keys --keyid-format SHORT (output -- I will share the password to diego in private)
  3. added the following to local.properties file
    SIGNING_KEY_ID=<key_id>
    SIGNING_PASSWORD=<password>
    SIGNING_KEY=~/.gnupg/secring.gpg

please guide me on what I am doing wrong. thanks!

dzuluaga commented 3 months ago

try excluding the task that signs the jar. It's something like -exclude task. Can't recall exactly

dzuluaga commented 3 months ago

@VishnuSanal BTW - Try this command. ./gradlew -P useMavenLocal=true :packages:core:publishToMavenLocal

VishnuSanal commented 3 months ago

./gradlew -P useMavenLocal=true :packages:core:publishToMavenLocal

that worked, thanks!