Skip to content

Commit a38236a

Browse files
authored
Add external name to the stamping setting example (bazelbuild#1235)
1 parent 664a7ad commit a38236a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/scala_import.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ This rule reimplements `java_import` without support for ijars, which break Scal
2020
Generally, ijars don’t help much for external dependencies, which rarely change.
2121

2222
The jar's compile MANIFEST.MF is stamped with a Target-Label attribute for dependency tracking
23-
reporting. This behaviour can be changed per `scala_import` target with an attribute or globally
23+
reporting.
24+
25+
## Configuring stamping behavior
26+
This behaviour can be changed per `scala_import` target with an attribute or globally
2427
with a setting:
2528
```
26-
bazel build //my:target --//scala/settings:stamp_scala_import=False
29+
bazel build //my:target --@io_bazel_rules_scala//scala/settings:stamp_scala_import=False
2730
```
2831

2932
## Attributes
@@ -37,4 +40,4 @@ bazel build //my:target --//scala/settings:stamp_scala_import=False
3740
| exports | `List of labels, optional` <br> List of targets to add to the dependencies of those that depend on this target.
3841
| neverlink | `boolean, optional (default False)` <br> If true only use this library for compilation and not at runtime.
3942
| srcjar | `Label, optional` <br> The source jar that was used to create the jar.
40-
| stamp | `Label, optional` <br> Setting to control Target-Label stamping into compile jar Manifest <br> Default value is `@io_bazel_rules_scala//scala/settings:stamp_scala_import`
43+
| stamp | `Label, optional` <br> Setting to control Target-Label stamping into compile jar Manifest <br> Default value is `@io_bazel_rules_scala//scala/settings:stamp_scala_import`

0 commit comments

Comments
 (0)