-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo_list.txt
More file actions
41 lines (31 loc) · 841 Bytes
/
demo_list.txt
File metadata and controls
41 lines (31 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Demos:
0. show demoapp structure
MODULE.bazel
demoapp BUILD
SampleMain.java
1. debug demoapp
[switch to terminal]
2. bazel build
bazel build //...
bazel build examples/demoapp/...
bazel build examples/demoapp:demoapp
change Main class and build
change test class and build
jps
3. bazel test
bazel test //...
4. bazel run
bazel run examples/demoapp
http://localhost:8080/actuator/configprops
5. bazel query
bazel query 'deps(examples/demoapp:demoapp_lib)' | grep @maven
bazel query 'deps(examples/demoapp:demoapp_lib)' | grep tomcat
bazel query --output graph 'somepath(examples/demoapp:demoapp_lib, @maven//:org_apache_tomcat_embed_tomcat_embed_core)'
6. BUILD file edits
- remove tomcat
jar -tvf bazel-bin/examples/demoapp/demoapp.jar| grep tomcat
update BUILD file
- dupe class check
set to True
- test dep banned
uncomment junit