Migrating to 2.3, can't resolve sbt-web plugins

590 views
Skip to first unread message

Arve Knudsen

unread,
Jul 12, 2014, 4:57:37 PM7/12/14
to play-fr...@googlegroups.com
Hi

I'm trying to migrate a Play 2.2 project to 2.3 and Scala 2.11.1. I am following the official 2.3 migration guide (http://www.playframework.com/documentation/2.3.x/Migration23), but the build fails right off the bat due to the plugin dependencies being impossible to resolve:

    [error] unresolved dependency: com.typesafe.sbt#sbt-web;1.0.0: not found
    [error] unresolved dependency: com.typesafe.sbt#sbt-webdriver;1.0.0: not found
    [error] unresolved dependency: com.typesafe.sbt#sbt-js-engine;1.0.0: not found
    [error] unresolved dependency: com.typesafe.sbt#sbt-coffeescript;1.0.0: not found
    [error] unresolved dependency: com.typesafe.sbt#sbt-digest;1.0.0: not found
    [error] unresolved dependency: com.typesafe.sbt#sbt-gzip;1.0.0: not found
    [error] unresolved dependency: com.typesafe.sbt#sbt-jshint;1.0.0: not found

What's going on here? See my build.sbt at https://gist.github.com/aknuds1/5894ea8f969828f4ea67.

Thanks,
Arve

alex s

unread,
Jul 12, 2014, 5:51:02 PM7/12/14
to play-fr...@googlegroups.com

Arve Knudsen

unread,
Jul 12, 2014, 6:45:55 PM7/12/14
to play-fr...@googlegroups.com
Ah, you're right, they are of course sbt plugins, it works now that I've moved the dependency declarations to addSbtPlugin calls in plugins.sbt. I wish the migration guide were more specific on what to put where. As it stands, a lot of the information there is rather implicit! Thanks!

Arve


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arve Knudsen

unread,
Jul 12, 2014, 6:48:22 PM7/12/14
to play-fr...@googlegroups.com
Btw, can you tell me how to determine the current versions of the various sbt plugins (sbt-web et al)? The template uses variables such as "%LESS_VERSION%", how are these variable substituted anyway?

Thanks,
Arve

alex s

unread,
Jul 12, 2014, 6:52:29 PM7/12/14
to play-fr...@googlegroups.com


воскресенье, 13 июля 2014 г., 2:48:22 UTC+4 пользователь Arve Knudsen написал:
Btw, can you tell me how to determine the current versions of the various sbt plugins (sbt-web et al)? The template uses variables such as "%LESS_VERSION%", how are these variable substituted anyway?

Oh, this is template for Activator and varibles are placeholders in which place Activator substitues actual plugin versions. So, just write something instead those variables :)

Arve Knudsen

unread,
Jul 12, 2014, 6:59:11 PM7/12/14
to play-fr...@googlegroups.com
But still, how do I determine the current versions of the different plugins (sbt-web and so on)?

Also, when trying to run the application, I get a bunch of other unresolved dependencies:

    [error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.play#build-link;2.3.1: not found
    [error] unresolved dependency: com.typesafe.play#play-exceptions;2.3.1: not found
    [error] unresolved dependency: com.typesafe.play#routes-compiler_2.10;2.3.1: not found
    [error] unresolved dependency: com.typesafe#jse_2.10;1.0.0: not found
    [error] unresolved dependency: com.typesafe#npm_2.10;1.0.0: not found
    [error] unresolved dependency: com.typesafe#webdriver_2.10;1.0.0: not found
    [error] unresolved dependency: com.typesafe#jstranspiler;1.0.0: not found

What gives?

Arve


--

alex s

unread,
Jul 12, 2014, 7:09:22 PM7/12/14
to play-fr...@googlegroups.com


воскресенье, 13 июля 2014 г., 2:52:29 UTC+4 пользователь alex s написал:

Oh, this is template for Activator and varibles are placeholders in which place Activator substitues actual plugin versions. So, just write something instead those variables :)

It looks like I'm slightly off here: it not the Activator that does the substitution, there is an sbt task for that.

alex s

unread,
Jul 12, 2014, 7:14:59 PM7/12/14
to play-fr...@googlegroups.com


воскресенье, 13 июля 2014 г., 2:59:11 UTC+4 пользователь Arve Knudsen написал:
But still, how do I determine the current versions of the different plugins (sbt-web and so on)?

Also, when trying to run the application, I get a bunch of other unresolved dependencies:

    [error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.play#build-link;2.3.1: not found
    [error] unresolved dependency: com.typesafe.play#play-exceptions;2.3.1: not found
    [error] unresolved dependency: com.typesafe.play#routes-compiler_2.10;2.3.1: not found
    [error] unresolved dependency: com.typesafe#jse_2.10;1.0.0: not found
    [error] unresolved dependency: com.typesafe#npm_2.10;1.0.0: not found
    [error] unresolved dependency: com.typesafe#webdriver_2.10;1.0.0: not found
    [error] unresolved dependency: com.typesafe#jstranspiler;1.0.0: not found

What gives?

Arve

 I'm waiting for updated gist.

Arve Knudsen

unread,
Jul 12, 2014, 7:35:54 PM7/12/14
to play-fr...@googlegroups.com
OK, the gist is updated.

Arve


--

Arve Knudsen

unread,
Jul 12, 2014, 7:45:23 PM7/12/14
to play-fr...@googlegroups.com
Nevermind, I found out why it was failing when launching the app, I was still using the old 'play' command (from 2.2) :( It was obscured by a script, so I didn't notice :(

Thanks,
Arve
Reply all
Reply to author
Forward
0 new messages