Am I required to publish my Dart package to pub.dartlang.org before I use it?

dart, dart-pub

Solution

What Bob said.

Also, if you need to have multiple developers inside your company all sharing the same internal package, you can use pub's support for git dependencies.

If you push your internal package to a local/internal git server, all your developers can access it.

Here is an example:

dependencies:
  foo:
    git: git://your.internal.server/package.git

Problem

With java/gradle I may depend on mavenCentral and mavenLocal and publish my own libs to mavenLocal. How is this done with Dart? I.e. I have multiple projects that depends on some private libs. As I can see "pub publish" can only publish to the central repo.

Original source