Bazel playground. Meant to be used with bazelisk for a consistent bazel version.
bazelisk build //...
bazelisk build //src/java/org/scode/bazelplay:hello_deploy.jar &&
java -jar bazel-bin/src/java/org/scode/bazelplay/hello_deploy.jar
bazelisk run //src/java/org/scode/bazelplay:hello
bazelisk run //src/python/scode:hello
bazelisk build --build_python_zip //src/python/scode:hello &&
bazel-bin/src/python/scode/hello
bazelisk test //...
- The build relies on a locally provided JDK. I'm not sure how to avoid that at the time of this writing,
but if you run into this issue you most likely need
to set JAVA_HOME.
- On macOS, with openjdk installed through homebrew, try
JAVA_HOME=/usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home
.
- On macOS, with openjdk installed through homebrew, try