Giter VIP home page Giter VIP logo

Comments (32)

kroikie avatar kroikie commented on July 19, 2024 3

The library is available now:

Group: com.google.gcm
Artifact: gcm-server
Version: 1.0.0

from gcm.

jewest27 avatar jewest27 commented on July 19, 2024 1

@ayjindal in the meantime you could use the one with the io.apigee.gcm package on maven central if you needed it...

<dependency>
    <groupId>io.apigee.gcm</groupId>
    <artifactId>gcm-server</artifactId>
    <version>1.0.0</version>
</dependency>

from gcm.

onsails avatar onsails commented on July 19, 2024

+1

from gcm.

xuwei-k avatar xuwei-k commented on July 19, 2024

+1

from gcm.

bogdanzurac avatar bogdanzurac commented on July 19, 2024

Finally found a thread about releasing a maven version of gcm-server. I'm currently using this artifact http://search.maven.org/#artifactdetails%7Ccom.ganyo%7Cgcm-server%7C1.0.2%7Cjar
It would be more than awesome if this would be released. I'm actually quite intrigued as to why it hasn't been an official Maven release of this library at all. I know you can just call the API yourself or use the jar file, but come on... this is Maven we're talking about. Nothing beats that simplicity.

from gcm.

sv3k avatar sv3k commented on July 19, 2024

+1
Strange that is has not been done yet.

from gcm.

benblack86 avatar benblack86 commented on July 19, 2024

+1

from gcm.

nsauro avatar nsauro commented on July 19, 2024

+1

from gcm.

reeve avatar reeve commented on July 19, 2024

+1

from gcm.

aliyakamercan avatar aliyakamercan commented on July 19, 2024

+1

from gcm.

Syntxx avatar Syntxx commented on July 19, 2024

+1

from gcm.

silvolu avatar silvolu commented on July 19, 2024

It took some time, but we're working on it. Thanks for the patience :)

from gcm.

HNygard avatar HNygard commented on July 19, 2024

+1

from gcm.

Polve avatar Polve commented on July 19, 2024

+1

from gcm.

gresrun avatar gresrun commented on July 19, 2024

👍

from gcm.

maksimu avatar maksimu commented on July 19, 2024

+1. Any ETA on when it will be available on Maven?

from gcm.

maksimu avatar maksimu commented on July 19, 2024

Just added Maven to my fork of this library: https://github.com/maksimu/gcm

Feel free to check it out.

To add manually Maven dependency to your project you can do the following steps:

  1. Build .jar file: mvn clean bulild
  2. Execute in the root directory of the project: mvn deploy:deploy-file -Durl=file:///[FOLDER WITH YOUR OTHER MANVEN PROJECT]/repo -Dfile=target/rest-client-1.0-SNAPSHOT.jar -DgroupId=com.google.gcm -DartifactId=rest-client -Dpackaging=jar -Dversion=1.0-SNAPSHOT
  3. Then in your existing maven project' pom.xml file add the following:
    <dependencies> 
      <!-- Other dependencies -->

      <dependency>
            <groupId>com.google.gcm</groupId>
            <artifactId>rest-client</artifactId>
            <version>1.0-SNAPSHOT</version>
     </dependency>
   </dependencies>


     <repositories>
      <!-- Other Repositories -->
        <repository>
            <id>project.local</id>
            <name>project</name>
            <url>file:${project.basedir}/repo</url>
        </repository>
    </repositories>

from gcm.

jlbelmonte avatar jlbelmonte commented on July 19, 2024

👍

from gcm.

michaelarusso avatar michaelarusso commented on July 19, 2024

We've just forked this and packaged it for maven, releasing it to maven central:

http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.apigee.gcm%22
https://github.com/apigee/gcm
1.0.0 points to the current of master branch.

We kept the existing file structure the same and just added a pom.xml: client-libraries/java/rest-client/pom.xml. We kept it this way so we can easily incorporate changes from this source repo until it's published by Google into maven central officially.

from gcm.

ayjindal avatar ayjindal commented on July 19, 2024

Is it going to be available officially anytime soon?

from gcm.

kroikie avatar kroikie commented on July 19, 2024

Hi @ayjindal I'm actively working on officially getting this out. It should be out very soon.

from gcm.

ayjindal avatar ayjindal commented on July 19, 2024

@jwest-apigee Thanks! I'll surely give it a shot to get started.
@kroikie Looking forward to its coming. Thanks.

from gcm.

avboy72 avatar avboy72 commented on July 19, 2024

Is this an official google project? If so, why is it not published in Maven?

from gcm.

Polve avatar Polve commented on July 19, 2024

Shouldn't the last version be 1.0.3 or 1.0.2?

from gcm.

RishabhJain1603 avatar RishabhJain1603 commented on July 19, 2024

Hi All,
I am beginner to maven and finding it difficult to migrate my project from gradle to Maven.
For Push notification code, that I have using from below link in gradle environment is working fine:
$ git clone https://github.com/googlesamples/google-services.git

But when i am trying to use it in my Maven and adding the following dependency to my pom.xml file:

com.google.gcm
gcm-server
1.0.0

And when I am trying to define receiver in my manifest file, I am getting the error.Not able to import any of the Cloud Messaging API in my code.





Please help me to resolve the error.
Thanks for the help.

I am using the sample given at below link:

Able to run in gradle environment successfully but now due to some client requirement I need to migrate my project to Maven.

from gcm.

kroikie avatar kroikie commented on July 19, 2024

@avboy72 It is available via maven now. Sorry for the delay.
@alessandro We could have gone with 1.0.3 but decided to go with v1.0.0
since this is the first release to maven.
@RishabhJain1603 not sure where the issue related to the client library,
create a new issue if you believe it is so. If it is a maven issue then a
question on SO may be better place.

On Wed, Jan 20, 2016 at 3:52 PM RishabhJain1603 [email protected]
wrote:

Hi All,
I am beginner to maven and finding it difficult to migrate my project from
gradle to Maven.
For Push notification code, that I have using from below link in gradle
environment is working fine:
$ git clone https://github.com/googlesamples/google-services.git

But when i am trying to use it in my Maven and adding the following
dependency to my pom.xml file:

com.google.gcm
gcm-server
1.0.0

But when I am trying to define receiver in my manifest file, I am getting
the error.
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >

Not able to import any of the Cloud Messaging API in my code.
Please help me to resolve the error.
Thanks for the help.

I am using the sample given at below link:

Able to run in gradle environment successfully but now due to some client
requirement I need to migrate my project to Maven.


Reply to this email directly or view it on GitHub
#23 (comment).

from gcm.

Polve avatar Polve commented on July 19, 2024

@kroikie I see, but that's quite strange: who is gonna use an old release just to use the google artifact?
Please release at least 1.0.2 :-)

from gcm.

pushbit avatar pushbit commented on July 19, 2024

@Polve, if I understand the situation correctly, the version number has simply been "renamed" to 1.0.0 and is based on the latest code as of 2016-01-16. We needn't worry that an ancient version of the library was dug up and released to Maven Central.

from gcm.

Polve avatar Polve commented on July 19, 2024

@pushbit Thanks for the info, let's hope it's how you say.
Anyway I find this very strange and confusing: what was the problem in calling the release 1.0.4 instead?

from gcm.

silvolu avatar silvolu commented on July 19, 2024

The version numbers above 1.0.0 come from when the project was on google code and binaries were distributed as downloads in a dist folder inside the project.
Given that we've moved to maven and it's the first package that we published to maven, and that the old packages are basically not available anymore, it seemed a cleaner solution to restart versioning from 1.0.0.

from gcm.

RishabhJain1603 avatar RishabhJain1603 commented on July 19, 2024

Using the above Dependency in my pom.xml file, I am not able to import any of Google Cloud Messaging API. It is giving error while writing below lines:
``GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();

I am not able to import any of the Google Cloud Messaging API's in my code.
Thanks for the help.

from gcm.

renekabagamba avatar renekabagamba commented on July 19, 2024

Thanks @silvolu and @kroikie. Any chances now that gcm was replaced by fcm that we will have the same availed on maven central also.

from gcm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.