Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dinowernli/java-bazel-project-template
A basic template for a Bazel-powered Java project, linking in a few common libraries.
https://github.com/dinowernli/java-bazel-project-template
Last synced: 9 days ago
JSON representation
A basic template for a Bazel-powered Java project, linking in a few common libraries.
- Host: GitHub
- URL: https://github.com/dinowernli/java-bazel-project-template
- Owner: dinowernli
- License: mit
- Created: 2015-11-22T18:43:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-12T12:07:30.000Z (almost 9 years ago)
- Last Synced: 2024-11-12T22:37:35.652Z (2 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# java-project-template
A basic template for a Bazel-powered Java project, linking in a few common libraries.####Usage
You can try it out by cloning the repo and running all the tests. This will cause all depedencies to be fetched and all code to be built.
```
> bazel test src/...
```In order to generate an eclipse project, run:
```
> src/tools/generate-eclipse-neon.py
```Then, use `File > Import > General > Existing Projects into Workspace` to import the generated project into Eclipse. Whenever the project gets outdated (e.g., when a new library was added), the command above needs to be re-run.
####Requirements
* The `bazel` binary must be available on your path.
* You must have Python installed.####Features
* An example library and binary, including tests.
* A third_party setup for external libraries.
* Support for grouping multiple Maven artifacts as a library.
* Support for generating an Eclipse project.####Libraries
The default setup declares dependencies on:
* Guava
* JUnit