Skip to content

Commit f20bc50

Browse files
committed
fix: fmt
Signed-off-by: Sam Gammon <[email protected]>
1 parent 930f332 commit f20bc50

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

.github/DCO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
66
Everyone is permitted to copy and distribute verbatim copies of this
77
license document, but changing it is not allowed.
88

9-
109
Developer's Certificate of Origin 1.1
1110

1211
By making a contribution to this project, I certify that:

.github/PROJECT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
## GraalVM Rules for Bazel
32

43
> Project Structure & Governance

docs/maven-artifacts.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
21
## Using GraalVM artifacts from Maven
32

43
Several important GraalVM artifacts are distributed via Maven, including the GraalVM SDK, Truffle API, and others.
54

65
These rules have some macros which make use of this libraries a bit easier, particularly via [`rules_jvm_external`][1].
76

8-
97
### Installing a Maven artifact
108

119
**From a `WORKSPACE.bazel`:**
10+
1211
```python
1312
# ... setup code for `rules_jvm_external` ...
1413
# ... setup code for `rules_graalvm` ...
@@ -17,6 +16,7 @@ load("@rules_graalvm//graalvm/artifacts:maven.bzl", "graalvm")
1716
load("@rules_jvm_external//:defs.bzl", "maven_install")
1817
load("@rules_jvm_external//:specs.bzl", "maven")
1918
```
19+
2020
```python
2121
maven_install(
2222
artifacts = [
@@ -32,6 +32,7 @@ maven_install(
3232
> **What this does:** The `graalvm.artifact` call will add the `graalvm.catalog.SDK` artifact via the `maven` struct provided by `rules_jvm_external`.
3333
3434
This is equivalent to the normal arguments expected by `maven_install`:
35+
3536
```python
3637
maven_install(
3738
artifacts = [
@@ -40,7 +41,6 @@ maven_install(
4041
)
4142
```
4243

43-
4444
### Using a Maven artifact
4545

4646
In addition to the macro made available for use in the `WORKSPACE` file, there is also a macro which makes it easy to use these Maven artifacts in your `java_library(deps = *)`:
@@ -62,20 +62,17 @@ java_library(
6262
)
6363
```
6464

65-
6665
## Available Maven dependencies
6766

68-
6967
| Artifact | Catalog symbol | Maven coordinate | Notes |
7068
| ---------------- | --------------------- | -------------------------------------- | --------------------------------------------- |
7169
| [GraalVM SDK][2] | `catalog.SDK` | [`org.graalvm.sdk:graal-sdk`][3] | Main GraalVM SDK package |
7270
| [Truffle API][4] | `catalog.TRUFFLE` | [`org.graalvm.truffle:truffle-api`][5] | API package for Truffle language implementors |
7371
| [Truffle NFI][6] | `catalog.TRUFFLE.NFI` | [`org.graalvm.truffle:truffle-nfi`][7] | Native Function Interface package or Truffle |
7472

75-
7673
[1]: https://github.com/bazelbuild/rules_jvm_external
7774
[2]: https://www.graalvm.org/sdk/javadoc/
78-
[3]: https://search.maven.org/artifact/org.graalvm.sdk/graal-sdk
75+
[3]: https://search.maven.org/artifact/org.graalvm.sdk/graal-sdk
7976
[4]: https://www.graalvm.org/truffle/javadoc/com/oracle/truffle/api/package-summary.html
8077
[5]: https://search.maven.org/artifact/org.graalvm.truffle/truffle-api
8178
[6]: https://github.com/oracle/graal/blob/master/truffle/docs/NFI.md

internal/native_image/classic.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _graal_binary_classic_implementation(ctx):
5959
)
6060

6161
if ctx.files.data:
62-
direct_inputs.extend(ctx.files.data)
62+
direct_inputs.extend(ctx.files.data)
6363

6464
inputs = depset(
6565
direct_inputs,

internal/native_image/rules.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _graal_binary_implementation(ctx):
101101
)
102102

103103
if ctx.files.data:
104-
direct_inputs.extend(ctx.files.data)
104+
direct_inputs.extend(ctx.files.data)
105105

106106
# assemble final inputs
107107
inputs = depset(

0 commit comments

Comments
 (0)