-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from menny/bazel-6
Bazel 6
- Loading branch information
Showing
62 changed files
with
809 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
test --sandbox_tmpfs_path=/tmp | ||
|
||
build --java_runtime_version=remotejdk_11 | ||
build --tool_java_runtime_version=remotejdk_11 | ||
build --java_language_version=11 | ||
|
||
test --build_tests_only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.0.0 | ||
6.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,42 @@ | ||
workspace(name = "mabel") | ||
|
||
load("//:init_deps.bzl", "init_mabel_deps") | ||
|
||
init_mabel_deps() | ||
|
||
load("//:init_rules.bzl", "init_mabel_rules") | ||
|
||
init_mabel_rules() | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
#### Below: Buildifier setup, which is only for local development | ||
# buildifier is written in Go and hence needs rules_go to be built. | ||
# See https://github.com/bazelbuild/rules_go for the up to date setup instructions. | ||
http_archive( | ||
name = "io_bazel_rules_go", | ||
sha256 = "a8d6b1b354d371a646d2f7927319974e0f9e52f73a2452d2b3877118169eb6bb", | ||
name = "rules_java", | ||
sha256 = "bcfabfb407cb0c8820141310faa102f7fb92cc806b0f0e26a625196101b0b57e", | ||
urls = [ | ||
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.23.3/rules_go-v0.23.3.tar.gz", | ||
"https://github.com/bazelbuild/rules_go/releases/download/v0.23.3/rules_go-v0.23.3.tar.gz", | ||
"https://github.com/bazelbuild/rules_java/releases/download/5.5.0/rules_java-5.5.0.tar.gz", | ||
], | ||
) | ||
|
||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") | ||
load("@rules_java//java:repositories.bzl", "remote_jdk19_repos", "rules_java_dependencies", "rules_java_toolchains") | ||
|
||
go_rules_dependencies() | ||
rules_java_dependencies() | ||
|
||
go_register_toolchains() | ||
remote_jdk19_repos() | ||
|
||
http_archive( | ||
name = "com_google_protobuf", | ||
sha256 = "36f81e03a0702f8f935fffd5a486dac1c0fc6d4bae1cd02c7a32448ad6e63bcb", | ||
strip_prefix = "protobuf-3.17.2", | ||
url = "https://github.com/protocolbuffers/protobuf/archive/v3.17.2.tar.gz", | ||
) | ||
rules_java_toolchains() | ||
|
||
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") | ||
load("@//:init_rules.bzl", "init_mabel_rules") | ||
|
||
protobuf_deps() | ||
init_mabel_rules() | ||
|
||
http_archive( | ||
name = "com_github_bazelbuild_buildtools", | ||
sha256 = "c28eef4d30ba1a195c6837acf6c75a4034981f5b4002dda3c5aa6e48ce023cf1", | ||
strip_prefix = "buildtools-4.0.1", | ||
url = "https://github.com/bazelbuild/buildtools/archive/4.0.1.tar.gz", | ||
name = "platforms", | ||
sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz", | ||
"https://github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz", | ||
], | ||
) | ||
|
||
load("@//:buildifier.bzl", "init_buildifier") | ||
|
||
init_buildifier() | ||
|
||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") | ||
|
||
go_rules_dependencies() | ||
|
||
go_register_toolchains(version = "1.17.2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
""" | ||
buildifier support | ||
""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") | ||
|
||
_BUILDIFIER_VERSION = "6.1.0" | ||
_BUILDIFIER_URL = "https://github.com/bazelbuild/buildtools/releases/download" | ||
|
||
def init_buildifier(): | ||
""" | ||
Initializing buildifier | ||
""" | ||
|
||
# buildifier is written in Go and hence needs rules_go to be built. | ||
# See https://github.com/bazelbuild/rules_go for the up to date setup instructions. | ||
http_archive( | ||
name = "io_bazel_rules_go", | ||
sha256 = "d6b2513456fe2229811da7eb67a444be7785f5323c6708b38d851d2b51e54d83", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip", | ||
"https://github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip", | ||
], | ||
) | ||
|
||
http_archive( | ||
name = "com_github_bazelbuild_buildtools", | ||
sha256 = "a75c337f4d046e560298f52ae95add73b9b933e4d6fb01ed86d57313e53b68e6", | ||
strip_prefix = "buildtools-{}".format(_BUILDIFIER_VERSION), | ||
urls = [ | ||
"https://github.com/bazelbuild/buildtools/archive/refs/tags/{}.tar.gz".format(_BUILDIFIER_VERSION), | ||
], | ||
) | ||
|
||
http_file( | ||
name = "buildifier_darwin_amd64", | ||
url = "{}/{}/buildifier-darwin-amd64".format(_BUILDIFIER_URL, _BUILDIFIER_VERSION), | ||
sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b812", | ||
downloaded_file_path = "buildifier", | ||
executable = True, | ||
) | ||
http_file( | ||
name = "buildifier_darwin_arm64", | ||
url = "{}/{}/buildifier-darwin-amd64".format(_BUILDIFIER_URL, _BUILDIFIER_VERSION), | ||
sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852a812", | ||
downloaded_file_path = "buildifier", | ||
executable = True, | ||
) | ||
http_file( | ||
name = "buildifier_linux_amd64", | ||
url = "{}/{}/buildifier-linux-amd64".format(_BUILDIFIER_URL, _BUILDIFIER_VERSION), | ||
sha256 = "0b51a6cb81bc3b51466ea2210053992654987a907063d0c2b9c03be29de52eff", | ||
downloaded_file_path = "buildifier", | ||
executable = True, | ||
) | ||
http_file( | ||
name = "buildifier_linux_arm64", | ||
url = "{}/{}/buildifier-linux-arm64".format(_BUILDIFIER_URL, _BUILDIFIER_VERSION), | ||
sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495911b7852b812", | ||
downloaded_file_path = "buildifier", | ||
executable = True, | ||
) | ||
http_file( | ||
name = "buildifier_windows_amd64", | ||
url = "{}/{}/buildifier-windows-amd64.exe".format(_BUILDIFIER_URL, _BUILDIFIER_VERSION), | ||
sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495911b1852b112", | ||
downloaded_file_path = "buildifier.exe", | ||
executable = True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.0.0 | ||
6.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package net.evendanan.bazel.mvn.example; | ||
|
||
class StringFormat { | ||
fun hello(name: String) = "Hello, ${name}" | ||
} |
Oops, something went wrong.