Google の広告 API に必要な依存関係を、scala で記述された再生アプリに追加しようとしています。私の問題は、すべての例が Java 用であり、scala では動作しないことです。
私はこのセットアップガイドを見てきました:
https://code.google.com/p/google-api-ads-java/
このサイトから sbt の依存関係を取得しました。
http://mvnrepository.com/artifact/com.google.api-ads
Build.scala:
val appDependencies = Seq(
//won't work, sbt can't resolve the RELEASE version
"com.google.api-ads" % "ads-lib" % "RELEASE"
)
val appDependencies = Seq(
//won't work either, see error below
"com.google.api-ads" % "ads-lib" % "1.8.0"
)
[warn] module not found: com.google.api-client#google-api-client;RELEASE
[warn] ==== local: tried
[warn] /home/rawphl/Coding/play-2.0.3/framework/../repository/local/com.google.api- client/google-api-client/RELEASE/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/google/api-client/google-api-client/RELEASE/google-api-client-RELEASE.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/com/google/api-client/google-api-client/RELEASE/google-api-client-RELEASE.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/google/api-client/google-api-client/RELEASE/google-api-client-RELEASE.pom
[warn] module not found: com.google.oauth-client#google-oauth-client;RELEASE
[warn] ==== local: tried
[warn] /home/rawphl/Coding/play-2.0.3/framework/../repository/local/com.google.oauth-client/google-oauth-client/RELEASE/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/google/oauth-client/google-oauth-client/RELEASE/google-oauth-client-RELEASE.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/com/google/oauth-client/google-oauth-client/RELEASE/google-oauth-client-RELEASE.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/google/oauth-client/google-oauth-client/RELEASE/google-oauth-client-RELEASE.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.google.api-client#google-api-client;RELEASE: not found
[warn] :: com.google.oauth-client#google-oauth-client;RELEASE: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
今どう進めばいいのかわからない。いくつかの依存関係が欠けているだけだと思いますが、Google API を追加する好ましい方法が何であるかがよくわかりません。