-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now the repository should work in non bzlmod setup
- Loading branch information
1 parent
9bd3fdc
commit 0413c53
Showing
5 changed files
with
105 additions
and
58 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 |
---|---|---|
@@ -1,40 +1,3 @@ | ||
"""Provides a simple way to test your rules as an external workspace. | ||
Add a basic smoke-test target below. | ||
""" | ||
|
||
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary") | ||
load("@bazel_skylib//rules:build_test.bzl", "build_test") | ||
load("@buildifier_prebuilt//:rules.bzl", "buildifier") | ||
|
||
# load("@com_bookingcom_rules_pitest//pitest:defs.bzl", "...") | ||
|
||
# Replace with a usage of your rule/macro | ||
filegroup(name = "empty") | ||
|
||
build_test( | ||
name = "smoke_test", | ||
targets = [ | ||
# targets you add above | ||
":empty", | ||
], | ||
) | ||
|
||
# gazelle:prefix github.com/your/project | ||
gazelle( | ||
name = "gazelle", | ||
gazelle = ":gazelle_bin", | ||
) | ||
|
||
gazelle_binary( | ||
name = "gazelle_bin", | ||
languages = DEFAULT_LANGUAGES + [ | ||
"@contrib_rules_jvm//java/gazelle", | ||
], | ||
) | ||
|
||
buildifier( | ||
name = "buildifier", | ||
exclude_patterns = [ | ||
"./.git/*", | ||
], | ||
) |
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,20 @@ | ||
"Extra Dependencies to call when using rules_pitest from WORKSPACE" | ||
|
||
load("@rules_jvm_external//:defs.bzl", "maven_install") | ||
|
||
def maven_dependencies(): | ||
"Import this method and execute it from your WORKSPACE when not using bzlmod" | ||
maven_install( | ||
name = "maven_pitest", | ||
artifacts = [ | ||
"org.pitest:pitest:1.15.8", | ||
"org.pitest:pitest-entry:1.15.8", | ||
"org.pitest:pitest-command-line:1.15.8", | ||
"org.pitest:pitest-junit5-plugin:1.2.1", | ||
], | ||
fetch_sources = False, | ||
repositories = [ | ||
"https://maven.google.com", | ||
"https://repo1.maven.org/maven2", | ||
], | ||
) |
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