Code Monkey home page Code Monkey logo

Comments (8)

dwijnand avatar dwijnand commented on June 20, 2024

same with Resolver.file and "foo" at "file://.." (see sbt/sbt#4015)

from librarymanagement.

eed3si9n avatar eed3si9n commented on June 20, 2024

How is this a bug? The documentation (https://www.scala-sbt.org/1.x/docs/Resolvers.html) says:

Maven

Resolvers for Maven2 repositories are added as follows:

resolvers += 
 "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

from librarymanagement.

dwijnand avatar dwijnand commented on June 20, 2024

how is it not a bug? in both cases you're trying to define a resolver for a maven repository. why does one work and the other not?

also note that the very same page you link says:

These are basic examples that use the default Maven-style repository layout.
[...]

URL

Define a URL repository at "https://example.org/repo-releases/".

resolvers += Resolver.url("my-test-repo", url("https://example.org/repo-releases/"))

(https://www.scala-sbt.org/1.x/docs/Resolvers.html#URL)

from librarymanagement.

eed3si9n avatar eed3si9n commented on June 20, 2024

Resolver.url defines an Ivy repository. Maven repos are statically different type - https://github.com/sbt/librarymanagement/blob/1.x/core/src/main/contraband-scala/sbt/librarymanagement/MavenRepository.scala

from librarymanagement.

dwijnand avatar dwijnand commented on June 20, 2024

Resolver.url defines an Ivy repository.

where is that stated?

the type signature states it defines a URL repository. it accepts patterns of which there is a mavenStylePatterns, which also the defaultPatterns and the implicit Patterns value in implicit scope.

from librarymanagement.

eed3si9n avatar eed3si9n commented on June 20, 2024

Custom

sbt provides an interface to the repository types available in Ivy: file, URL, SSH, and SFTP.

There's more to Maven emulation than layout internal to both sbt and Ivy.

from librarymanagement.

dwijnand avatar dwijnand commented on June 20, 2024

There's more to Maven emulation than layout internal to both sbt and Ivy.

where is that stated?

this is way to easy to do wrong and the fact that it's wrong is not obvious.

from librarymanagement.

eed3si9n avatar eed3si9n commented on June 20, 2024

Not sure if these implementation details are stated but there are things like sbt/sbt#2172 and more stuff on the Ivy side.

from librarymanagement.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.