Skip to content

Commit cc4b351

Browse files
seckin206iirina
authored andcommitted
Fix the contents of BUILD for java-tutorial (bazelbuild#101)
The current contents of the BUILD file is from a later stage in tutorial
1 parent 1438c92 commit cc4b351

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.bazelci/presubmit.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@ tasks:
121121
platform: ubuntu1804
122122
working_directory: java-tutorial
123123
build_targets:
124-
- "..."
124+
- "//:ProjectRunner"
125125
java-tutorial-macos:
126126
name: "Java Tutorial"
127127
platform: macos
128128
working_directory: java-tutorial
129129
build_targets:
130-
- "..."
130+
- "//:ProjectRunner"
131131
java-tutorial-windows:
132132
name: "Java Tutorial"
133133
platform: windows
134134
working_directory: java-tutorial
135135
build_targets:
136-
- "..."
136+
- "//:ProjectRunner"
137137
rules-linux:
138138
name: "Bazel Rules"
139139
platform: ubuntu1804

java-tutorial/BUILD

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
java_binary(
22
name = "ProjectRunner",
3-
srcs = glob(["src/main/java/com/example/ProjectRunner.java"]),
4-
deps = [":greeter"],
5-
)
6-
7-
java_library(
8-
name = "greeter",
9-
srcs = ["src/main/java/com/example/Greeting.java"],
10-
visibility = ["//src/main/java/com/example/cmdline:__pkg__"],
3+
srcs = glob(["src/main/java/com/example/*.java"]),
114
)

0 commit comments

Comments
 (0)