Skip to content

Commit

Permalink
chore(deps): Bump rules_java version from ? to 7.2.0
Browse files Browse the repository at this point in the history
Originally motivated by bazelbuild/bazel#18743,
in the context of salesforce/bazel-vscode-java#85,

but as noted in bazelbuild/rules_java#159
from enola-dev#427 I can't go to 7.3.2
just yet - but bumping at least already to 7.2.0 is a first step!
  • Loading branch information
vorburger committed Jan 17, 2024
1 parent 2442583 commit 2dcb265
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# https://registry.bazel.build/modules/rules_java
bazel_dep(name = "rules_java", version = "7.2.0")

# https://github.com/bazelbuild/rules_jvm_external/blob/master/docs/bzlmod.md#installation
# When bumping the version here, must always run: REPIN=1 bazel run @unpinned_maven//:pin
bazel_dep(name = "rules_jvm_external", version = "5.3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,13 @@ public void testResources() throws IOException {
Optional.of(Charsets.UTF_8),
"🕵🏾‍♀️\n");

checkBinary("test.md", OCTET_STREAM, 19);
var md = "# Markdown\n\n❤️\n";
checkText(
"test.md",
MediaType.create("text", "markdown").withCharset(Charsets.UTF_8),
Optional.of(Charsets.UTF_8),
md);
var resource = new UrlResource(Resources.getResource("test.md"), UTF_8);
assertThat(resource.charSource().read()).isEqualTo("# Markdown\n\n❤️\n");
assertThat(resource.charSource().read()).isEqualTo(md);
}
}

0 comments on commit 2dcb265

Please sign in to comment.