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

Walletobjects api service not on Maven? #75

Open
dbhathena opened this issue May 9, 2023 · 4 comments
Open

Walletobjects api service not on Maven? #75

dbhathena opened this issue May 9, 2023 · 4 comments

Comments

@dbhathena
Copy link

I am looking to implement the Google Wallet API in Java, and have been following the instructions here. However I noticed that the google-api-services-walletobjects artifact is not in Maven, and is only available as a jar download here, and is also not made available within the Google API Java Client. Why is this, and can it be added to Maven so my project can access the artifact without having to download and install the jar locally? Thanks!

@pfaffenrodt
Copy link

@dbhathena Do you use the jar file? I guess I will build my own pojos.

Updates of Jar files are hard to keep track of. Please explain the reason?

@dbhathena
Copy link
Author

@pfaffenrodt I downloaded the jar file and have been using that so far, which works fine but is unideal.

@razvanphp
Copy link
Contributor

razvanphp commented Dec 3, 2023

Same thing for PHP, why can't those libs be properly open-sourced in a git repo? For php, added to composer also... Thanks!

I stand corrected...by myself. For PHP, one can (and should!) install the libs using composer:

{
// ...
  "require": {
    "php": ">=7.4",
    "google/apiclient": "^2.15.0"
  },
  "scripts": {
    "pre-autoload-dump": "Google\\Task\\Composer::cleanup"
  },
  "extra": {
    "google/apiclient-services": [
      "Walletobjects"
    ]
  }
}

... this will also install composer package google/apiclient-services as dependency. Source

Then the Walletobjects class is available in namespace Google\Service\Walletobjects.

I will update this repo with a MR for this.

@razvanphp
Copy link
Contributor

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

No branches or pull requests

3 participants