Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Bazel Steward - a tool for keeping dependencies up to date in Bazel #553

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/bazel-steward.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Bazel Steward

on:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'

jobs:
bazel-steward:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: VirtusLab/bazel-steward@latest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.class
*.log
bazel-*
!bazel-steward.yaml
.idea
*.iml
*.pyc
Expand Down
33 changes: 19 additions & 14 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,34 @@ http_archive(
name = "bazel_skylib",
sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
type = "tar.gz",
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib.{}.tar.gz".format(skylib_version, skylib_version),
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz",
)

load("//dependencies/google_protobuf:google_protobuf.bzl", "google_protobuf")

google_protobuf()

load("@greyhound//central-sync:dependencies.bzl", "rules_jvm_external", "rules_kotlin", "vaticle_bazel_distribution")
load("@greyhound//central-sync:dependencies.bzl", "rules_kotlin", "vaticle_bazel_distribution")

rules_kotlin()

rules_jvm_external()
RULES_JVM_EXTERNAL_TAG = "5.2"
RULES_JVM_EXTERNAL_SHA ="f86fd42a809e1871ca0aabe89db0d440451219c3ce46c58da240c7dcdc00125f"

http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
url = "https://github.com/bazelbuild/rules_jvm_external/releases/download/%s/rules_jvm_external-%s.tar.gz" % (RULES_JVM_EXTERNAL_TAG, RULES_JVM_EXTERNAL_TAG)
)

load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")

rules_jvm_external_deps()

load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")

rules_jvm_external_setup()

load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")

Expand All @@ -32,17 +48,6 @@ vaticle_bazel_distribution()

load("@vaticle_bazel_distribution//maven:deps.bzl", "maven_artifacts_with_versions")

RULES_JVM_EXTERNAL_TAG = "3.1"

RULES_JVM_EXTERNAL_SHA = "e246373de2353f3d34d35814947aa8b7d0dd1a58c2f7a6c41cfeaff3007c2d14"

http_archive(
name = "rules_jvm_external",
sha256 = RULES_JVM_EXTERNAL_SHA,
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
)

load("//:third_party.bzl", "dependencies")

dependencies()
Expand Down
8 changes: 0 additions & 8 deletions central-sync/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,3 @@ def rules_kotlin():
strip_prefix = "rules_kotlin-c2519b00299cff9df22267e8359784e9948dba67",
sha256 = "1455f2ec4bf7ea12d2c90b0dfd6402553c3bb6cbc0271023e2e01ccdefb4a49a",
)

def rules_jvm_external():
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-3.2",
sha256 = "82262ff4223c5fda6fb7ff8bd63db8131b51b413d26eb49e3131037e79e324af",
url = "https://github.com/bazelbuild/rules_jvm_external/archive/3.2.zip",
)