nafg / slick-migration-api

Schema manipulation dialects and DSL for Slick

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resolver

mathieuleclaire opened this issue · comments

Hi,
I tryed to use slick-migragtion-api using this resolver:
"bintray" at "https://api.bintray.com/maven/naftoligug/maven/slick-migration-api"
but it fails. Is it the appropriate one ?

Thanks

The one I'm using is:

resolvers += Resolver.bintrayRepo("naftoligug", "maven"),

Dependending on :
"io.github.nafg" %% "slick-migration-api" % "0.4.0-M1" as suggested
with the resolver:
Resolver.bintrayRepo("naftoligug", "maven")
does not work for me.

Strange. It works for me 😕

It's supposed to be synced to maven central. Let me see...

Err sorry, I meant JCenter

Yes it works. Note that it's not available for scala 2.10. Here's an abbreviated sbt session. I ran sbt in a directory with no sbt files, specifying a fresh, temporary Ivy directory, and demonstrate that it indeed doesn't resolve from the local Ivy. I then add jcenterRepo, and it still doesn't resolve because it's on scala 2.10. I then demonstrate that for scala 2.11 and 2.12, the dependency successfully downloads. (The ... are where it's downloading other things.)

$ sbt -ivy /tmp/.ivy                                                                                                                                                                                                                                         
[info] Loading global plugins from /home/naftoli/.sbt/0.13/plugins
[info] Updating {file:/home/naftoli/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...

...

[info] Done updating.
[info] Set current project to tmp (in build file:/tmp/)
> set libraryDependencies += "io.github.nafg" %% "slick-migration-api" % "0.4.0-M1"
[info] Defining *:libraryDependencies
[info] The new value will be used by *:allDependencies, *:dependencyPositions, *:dependencyUpdatesData
[info] Reapplying settings...
[info] Set current project to tmp (in build file:/tmp/)
> update
[info] Updating {file:/tmp/}tmp...
[info] Resolving io.github.nafg#slick-migration-api_2.10;0.4.0-M1 ...
[warn] 	module not found: io.github.nafg#slick-migration-api_2.10;0.4.0-M1
[warn] ==== local: tried
[warn]   /tmp/.ivy/local/io.github.nafg/slick-migration-api_2.10/0.4.0-M1/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/io/github/nafg/slick-migration-api_2.10/0.4.0-M1/slick-migration-api_2.10-0.4.0-M1.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: io.github.nafg#slick-migration-api_2.10;0.4.0-M1: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn] 	Note: Unresolved dependencies path:
[warn] 		io.github.nafg:slick-migration-api_2.10:0.4.0-M1 (<set>#L1-1)
[warn] 		  +- default:tmp_2.10:0.1-SNAPSHOT
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: io.github.nafg#slick-migration-api_2.10;0.4.0-M1: not found
[error] Total time: 1 s, completed Feb 21, 2017 8:09:36 PM
> set resolvers += Resolver.jcenterRepo
[info] Defining *:resolvers
[info] The new value will be used by *:externalResolvers
[info] Reapplying settings...
[info] Set current project to tmp (in build file:/tmp/)
> update
[info] Updating {file:/tmp/}tmp...
[info] Resolving io.github.nafg#slick-migration-api_2.10;0.4.0-M1 ...
[warn] 	module not found: io.github.nafg#slick-migration-api_2.10;0.4.0-M1
[warn] ==== local: tried
[warn]   /tmp/.ivy/local/io.github.nafg/slick-migration-api_2.10/0.4.0-M1/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/io/github/nafg/slick-migration-api_2.10/0.4.0-M1/slick-migration-api_2.10-0.4.0-M1.pom
[warn] ==== jcenter: tried
[warn]   https://jcenter.bintray.com/io/github/nafg/slick-migration-api_2.10/0.4.0-M1/slick-migration-api_2.10-0.4.0-M1.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: io.github.nafg#slick-migration-api_2.10;0.4.0-M1: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn] 	Note: Unresolved dependencies path:
[warn] 		io.github.nafg:slick-migration-api_2.10:0.4.0-M1 (<set>#L1-1)
[warn] 		  +- default:tmp_2.10:0.1-SNAPSHOT
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: io.github.nafg#slick-migration-api_2.10;0.4.0-M1: not found
[error] Total time: 2 s, completed Feb 21, 2017 8:09:55 PM
> set scalaVersion := "2.12.1"
[info] Defining *:scalaVersion
[info] The new value will be used by *:allDependencies, *:crossScalaVersions and 18 others.
[info] 	Run `last` for details.
[info] Reapplying settings...
[info] Set current project to tmp (in build file:/tmp/)
> update
[info] Updating {file:/tmp/}tmp...
[info] Resolving org.sonatype.oss#oss-parent;9 ...

...

[info] downloading https://jcenter.bintray.com/io/github/nafg/slick-migration-api_2.12/0.4.0-M1/slick-migration-api_2.12-0.4.0-M1.jar ...
[info] 	[SUCCESSFUL ] io.github.nafg#slick-migration-api_2.12;0.4.0-M1!slick-migration-api_2.12.jar (1259ms)

...

[info] Done updating.
[success] Total time: 6 s, completed Feb 21, 2017 8:10:26 PM
> set scalaVersion := "2.11.8"
[info] Defining *:scalaVersion
[info] The new value will be used by *:allDependencies, *:crossScalaVersions and 18 others.
[info] 	Run `last` for details.
[info] Reapplying settings...
[info] Set current project to tmp (in build file:/tmp/)
> update
[info] Updating {file:/tmp/}tmp...
[info] Resolving org.sonatype.oss#oss-parent;7 ...

...

[info] downloading https://jcenter.bintray.com/io/github/nafg/slick-migration-api_2.11/0.4.0-M1/slick-migration-api_2.11-0.4.0-M1.jar ...
[info] 	[SUCCESSFUL ] io.github.nafg#slick-migration-api_2.11;0.4.0-M1!slick-migration-api_2.11.jar (1959ms)

...

[info] Done updating.
[success] Total time: 8 s, completed Feb 21, 2017 8:10:47 PM
> 

I had resolvers in project/build.sbt and in build.sbt, so that modifying in project/built.sbt had no effect since it was overwritten by the build.sbt definition. So just a sbt confusion. It's fine to have specified the jCenter repo ! Let's now play with your DSL !

If I remember correctly, project/build.sbt is not the build definition for your project, it's actually the build definition for the project that builds your project 😉