google-http-client-jackson2 dependency

100 views
Skip to first unread message

David Antunes

unread,
Oct 5, 2013, 5:35:50 AM10/5/13
to adwor...@googlegroups.com
Hi,

Is this right?
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
<version>RELEASE</version>
</dependency>

Isn't it missing the version, instead of the string "RELEASE"?

https://google-api-ads-java.googlecode.com/git-history/63fbb62152838a74e4d088617d04c05dc0ac7af2/modules/ads_lib/pom.xml

Thanks,
David

Jason Stedman

unread,
Oct 5, 2013, 11:09:37 AM10/5/13
to adwor...@googlegroups.com
David,

This is generally considered a dangerous way to declare dependency versions, but it is also supported.

What Maven will do is download the latest non-SNAPSHOT version of the artifact. I trust that the AdWords API team does enough testing to make sure the version they build the library against is actually compatible with the library itself. 

Are you having a dependency conflict with this artifact?

David Miguel Antunes

unread,
Oct 5, 2013, 2:04:23 PM10/5/13
to nam...@gmail.com, adwor...@googlegroups.com
Hi Jason,

Well, I see, however I'm using Scala, with SBT - and it doesn't seem to do the trick.

The solution I found for it to work with sbt is to add the dependency, kind of manually, like this:

libraryDependencies += "com.google.http-client" % "google-http-client-jackson2" % "RELEASE" from "http://repo1.maven.org/maven2/com/google/http-client/google-http-client-jackson2/1.17.0-rc/google-http-client-jackson2-1.17.0-rc.jar"

libraryDependencies ++= {
  val liftVersion = "2.5.1"
  Seq(
    "com.google.api-ads"        % "ads-lib"                     % "1.20.0",
    "com.google.api-ads"        % "adwords-axis"                % "1.20.0"
    // .....
  )
}

(for reference of future readers)

Regards,

David


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
 
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/-MVD9536VBo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages