Re-download a SNAPSHOT version of a dependency using SBT

后端 未结 1 2033
情深已故
情深已故 2020-12-08 10:21

I have the following lines in my build.sbt file.

resolvers += \"specs2 snapshot repo\" at \"http://scala-tools.org/repo-snapshots\"

libraryDepe         


        
相关标签:
1条回答
  • 2020-12-08 10:40

    you should try :

    libraryDependencies += "org.specs2" %% "specs2" % "1.7-SNAPSHOT" % "test" changing()
    

    changing() will specify that the dependency can change and that it ivy must download it on each update.

    Maybe you could also try to define your repository using ivyXML. Something like this :

    ivyXML :=
      <resolvers>
            <ibiblio name="specs2 snapshot repo" changingPattern="*-SNAPSHOT" m2compatible="true" root="http://scala-tools.org/repo-snapshots"/>
      </resolvers>
    

    Hope this will help.

    0 讨论(0)
提交回复
热议问题