Open-source the deps repository.

Bug: b/323834062
Change-Id: Ib2664ad7e28b776b461fe8a2cf2b33c6b609bcb8
Reviewed-on: https://dart-internal-review.googlesource.com/c/deps/+/6420
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: William Hesse <whesse@google.com>
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..787a628
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,18 @@
+# Dependabot configuration file.
+# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
+version: 2
+
+updates:
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: "monthly"
+    labels:
+      - type-infra
+
+  - package-ecosystem: "pub"
+    directory: "/scripts"
+    schedule:
+      interval: "monthly"
+    labels:
+      - type-infra
diff --git a/.github/workflows/gerrit-reviewed.yml b/.github/workflows/gerrit-reviewed.yml
new file mode 100644
index 0000000..07021a0
--- /dev/null
+++ b/.github/workflows/gerrit-reviewed.yml
@@ -0,0 +1,16 @@
+# A workflow to prevent PRs from being submitted through the GitHub UI.
+
+name: Do Not Submit
+
+on:
+  pull_request:
+    branches: [main]
+
+jobs:
+  do-not-submit:
+    name: Gerrit reviewed
+    runs-on: ubuntu-latest
+    steps:
+      - run: |
+          echo "Do not submit this PR through github - this repo uses Gerrit for reviews."
+          exit 1
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..846e4a1
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,6 @@
+# Below is a list of people and organizations that have contributed
+# to the Dart project. Names should be added to the list like so:
+#
+#   Name/Organization <email address>
+
+Google LLC
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..a217815
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,27 @@
+Copyright 2021, the Dart project authors.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.
+    * Neither the name of Google LLC nor the names of its
+      contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/README.md b/README.md
index 9dd15eb..154d943 100644
--- a/README.md
+++ b/README.md
@@ -1 +1 @@
-Tools that create packages needed by the Dart SDK.
\ No newline at end of file
+Tools that create packages needed by the Dart SDK.
diff --git a/bin/update_browsers.dart b/bin/update_browsers.dart
index 5c85315..9f56248 100644
--- a/bin/update_browsers.dart
+++ b/bin/update_browsers.dart
@@ -1,4 +1,7 @@
 #!/usr/bin/env dart
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
 
 /// Updates the CIPD packages used for browser testing on Luci.
 
diff --git a/lib/browsers/chrome.dart b/lib/browsers/chrome.dart
index 2eb9c6c..dd6930e 100644
--- a/lib/browsers/chrome.dart
+++ b/lib/browsers/chrome.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import '../build.dart';
 import '../cipd.dart';
 import '../fetch.dart';
diff --git a/lib/browsers/firefox.dart b/lib/browsers/firefox.dart
index b202392..bb7ecdf 100644
--- a/lib/browsers/firefox.dart
+++ b/lib/browsers/firefox.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'package:file/file.dart';
 
 import '../build.dart';
diff --git a/lib/build.dart b/lib/build.dart
index 4f42272..902f1eb 100644
--- a/lib/build.dart
+++ b/lib/build.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'package.dart';
 import 'useful_directory.dart';
 import 'package:file/file.dart';
diff --git a/lib/cipd.dart b/lib/cipd.dart
index 20c76ae..95c920d 100644
--- a/lib/cipd.dart
+++ b/lib/cipd.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:convert';
 import 'dart:io' as io;
 
diff --git a/lib/command.dart b/lib/command.dart
index 41b38e9..e0c734c 100644
--- a/lib/command.dart
+++ b/lib/command.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import "dart:async";
 import 'dart:io';
 
diff --git a/lib/fetch.dart b/lib/fetch.dart
index ded544d..7ccd3bf 100644
--- a/lib/fetch.dart
+++ b/lib/fetch.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:io' as io;
 
 import 'command.dart';
diff --git a/lib/package.dart b/lib/package.dart
index e97d8d9..94bcfa0 100644
--- a/lib/package.dart
+++ b/lib/package.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:async';
 
 import 'useful_directory.dart';
diff --git a/lib/provenance.dart b/lib/provenance.dart
index 1160e5d..bb4d092 100644
--- a/lib/provenance.dart
+++ b/lib/provenance.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:io' as io;
 
 import 'command.dart';
diff --git a/lib/useful_directory.dart b/lib/useful_directory.dart
index bd544a5..093c2d4 100644
--- a/lib/useful_directory.dart
+++ b/lib/useful_directory.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'package:file/file.dart';
 
 /// Extends [Directory] with functions to resolve relative paths and move
diff --git a/test/browsers/chrome_test.dart b/test/browsers/chrome_test.dart
index cdda711..be30c17 100644
--- a/test/browsers/chrome_test.dart
+++ b/test/browsers/chrome_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'package:deps/browsers/chrome.dart';
 import 'package:deps/package.dart';
 import 'package:file/file.dart';
diff --git a/test/browsers/firefox_test.dart b/test/browsers/firefox_test.dart
index 6ff1c1c..823ce99 100644
--- a/test/browsers/firefox_test.dart
+++ b/test/browsers/firefox_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'package:deps/browsers/firefox.dart';
 import 'package:deps/package.dart';
 import 'package:file/file.dart';
diff --git a/test/build_test.dart b/test/build_test.dart
index 7350918..335d58b 100644
--- a/test/build_test.dart
+++ b/test/build_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:io' as io;
 
 import 'package:deps/build.dart';
diff --git a/test/cipd_test.dart b/test/cipd_test.dart
index aa46b23..4f48629 100644
--- a/test/cipd_test.dart
+++ b/test/cipd_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:async';
 import 'dart:convert';
 import 'dart:io' as io;
diff --git a/test/command_test.dart b/test/command_test.dart
index 844c63e..155883e 100644
--- a/test/command_test.dart
+++ b/test/command_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:io';
 
 import 'package:deps/command.dart';
diff --git a/test/fetch_gsutil_test.dart b/test/fetch_gsutil_test.dart
index d76ea00..216e159 100644
--- a/test/fetch_gsutil_test.dart
+++ b/test/fetch_gsutil_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:io' as io;
 
 import 'package:deps/fetch.dart';
diff --git a/test/fetch_http_test.dart b/test/fetch_http_test.dart
index 46f1dba..2bb3b55 100644
--- a/test/fetch_http_test.dart
+++ b/test/fetch_http_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:io' as io;
 
 import 'package:deps/fetch.dart';
diff --git a/test/package_test.dart b/test/package_test.dart
index c67893d..86487f2 100644
--- a/test/package_test.dart
+++ b/test/package_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:async';
 
 import 'package:file/file.dart';
diff --git a/test/provenance_test.dart b/test/provenance_test.dart
index 8e1f78e..3a50193 100644
--- a/test/provenance_test.dart
+++ b/test/provenance_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'dart:io' as io;
 
 import 'package:deps/command.dart';
diff --git a/test/test_logger.dart b/test/test_logger.dart
index 7504a4f..5f7e8a6 100644
--- a/test/test_logger.dart
+++ b/test/test_logger.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'package:logging/logging.dart';
 
 Logger createTestLogger() {
diff --git a/test/useful_directory_test.dart b/test/useful_directory_test.dart
index 8a436a3..a85ed74 100644
--- a/test/useful_directory_test.dart
+++ b/test/useful_directory_test.dart
@@ -1,3 +1,7 @@
+// Copyright 2024, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
 import 'package:file/memory.dart';
 import 'package:test/test.dart';
 import 'package:deps/useful_directory.dart';