Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Jan 28, 2024
1 parent e9b12db commit ee6b3a0
Show file tree
Hide file tree
Showing 10 changed files with 1,314 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build --java_language_version=17 --java_runtime_version=17 --tool_java_runtime_version=17 --tool_java_language_version=17
build --java_language_version=21 --java_runtime_version=21 --tool_java_runtime_version=21 --tool_java_language_version=21
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0
7.0.2
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

.eclipse/
.vscode/

*.class

bazel-*
4 changes: 3 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
java_binary(
name = "test",
javacopts = ["--enable-preview"],
srcs = ["Hello.java"],
deps = [
":with-multiline",
Expand All @@ -9,6 +10,7 @@ java_binary(

java_library(
name = "with-multiline",
srcs = glob(["Multiline.java"]),
srcs = ["Multiline.java"],
javacopts = ["--enable-preview"],
visibility = ["//visibility:public"],
)
12 changes: 7 additions & 5 deletions Hello.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
public class Hello {
public static void main(String[] args) {
var greeting = """
Hello, world""";
System.out.println(greeting);
}
public static void main(String[] args) {
var greeting = """
Hello, world""";
System.out.println(greeting);

System.out.println(Multiline.s2);
}
}
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty
Loading

0 comments on commit ee6b3a0

Please sign in to comment.