Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

I am having an issue with unresolved dependency while using play framework #189

Closed
soumya1986 opened this issue Jun 30, 2014 · 2 comments
Closed

Comments

@soumya1986
Copy link

the build.sbt file is like this:

name := """DeadSample"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava)

scalaVersion := "2.11.0"

libraryDependencies ++= Seq(
javaJdbc,
javaEbean,
cache,
javaWs,
"be.objectify" %% "deadbolt-java" % "2.3.0-RC1",
"com.feth" %% "play-authenticate" % "0.6.1-SNAPSHOT"
)

resolvers ++= Seq(
Resolver.url("Objectify Play Repository (release)", url("http:https://schaloner.github.com/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("Objectify Play Repository (snapshot)", url("http:https://schaloner.github.com/snapshots/"))(Resolver.ivyStylePatterns),
Resolver.url("play-easymail (release)", url("http:https://joscha.github.com/play-easymail/repo/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("play-easymail (snapshot)", url("http:https://joscha.github.com/play-easymail/repo/snapshots/"))(Resolver.ivyStylePatterns),
Resolver.url("play-authenticate (release)", url("http:https://joscha.github.com/play-authenticate/repo/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("play-authenticate (snapshot)", url("http:https://joscha.github.com/play-authenticate/repo/snapshots/"))(Resolver.ivyStylePatterns)
)


I get an error saying

sbt.ResolveException: unresolved dependency: com.feth#play-authenticate_2.11;0.6.1-SNAPSHOT: not found

@joscha
Copy link
Owner

joscha commented Jun 30, 2014

play-authenticate and play-easymail versions 0.6.1 and up are not published in ivy style any more, so you just have to remove the (Resolver.ivyStylePatterns) from your resolver definitions for those projects, e.g.:

 "play-easymail (release)" at "http:https://joscha.github.io/play-easymail/repo/releases/",
  "play-easymail (snapshot)" at "http:https://joscha.github.io/play-easymail/repo/snapshots/",
  "play-authenticate (release)" at "http:https://joscha.github.io/play-authenticate/repo/releases/",
  "play-authenticate (snapshot)" at "http:https://joscha.github.io/play-authenticate/repo/snapshots/"

@joscha joscha closed this as completed Jun 30, 2014
@joscha
Copy link
Owner

joscha commented Jun 30, 2014

I added a hint to README.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants