Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
add rules to package releases (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiuto authored and fweikert committed Sep 30, 2019
1 parent f0e5eda commit ed2907a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 11 deletions.
19 changes: 9 additions & 10 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

# gazelle:prefix github.com/example/project
gazelle(
name = "gazelle",
)

buildifier(
name = "buildifier",
filegroup(
name = "standard_package",
srcs = glob([
"BUILD",
"LICENSE",
"*.bzl",
"third_party/**",
]),
visibility = ["@//distro:__pkg__"],
)
7 changes: 6 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Empty workspace since all examples should live in their own directory
workspace(name = "bazel_federation")

load("@bazel_federation//:repositories.bzl", "rules_pkg")
rules_pkg()
load("@bazel_federation//setup:rules_pkg.bzl", "rules_pkg_setup")
rules_pkg_setup()
6 changes: 6 additions & 0 deletions setup/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
exports_files(glob(["*.bzl"]))

filegroup(
name = "standard_package",
srcs = glob(["BUILD", "*.bzl"]),
visibility = ["@//distro:__pkg__"],
)
16 changes: 16 additions & 0 deletions version.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The version of bazel_federation."""

version = "0.0.1"

0 comments on commit ed2907a

Please sign in to comment.