Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Add Bazel build for message_generation #66

Merged
merged 3 commits into from
Feb 28, 2018
Merged

Conversation

drigz
Copy link
Member

@drigz drigz commented Feb 27, 2018

This also allows other Bazel projects (rosjava_core in particular) to
depend on this as an external repository.

It uses https://github.com/johnynek/bazel-deps to describe the Maven
dependencies. As a result, 3rdparty/ contains autogenerated files, and
the other files contain a hand-written description of the BUILD.

Only some of the tests in message_generation have been added. The others
fail at the moment because the .msg resources aren't present.

I will add documentation for the Bazel build to rosjava_core.

@drigz drigz requested review from damonkohler and jubeira February 27, 2018 15:34
drigz added a commit to drigz/rosjava_core that referenced this pull request Feb 27, 2018
This also allows other Bazel projects to include rosjava_core as an
external repository, as instructed in README.md.

This uses https://github.com/johnynek/bazel-deps to describe the Maven
dependencies. As a result, 3rdparty/ contains autogenerated files, and
the other files contain a hand-written description of the BUILD.

DO NOT MERGE until rosjava/rosjava_bootstrap#66
has been merged.
@drigz
Copy link
Member Author

drigz commented Feb 27, 2018

@jubeira @damonkohler If you can point me at the gradle configuration that adds the message files to the resources, I can try to do the same for Bazel.

@jubeira
Copy link

jubeira commented Feb 27, 2018

@drigz sorry, I'm not familiar with that Gradle task.

The message files are already in the resources folder; isn't that standard?

This also allows other Bazel projects (rosjava_core in particular) to
depend on this as an external repository.

It uses https://github.com/johnynek/bazel-deps to describe the Maven
dependencies. As a result, 3rdparty/ contains autogenerated files, and
the other files contain a hand-written description of the BUILD.

Only some of the tests in message_generation have been added. The others
fail at the moment because the .msg resources aren't present.

I will add documentation for the Bazel build to rosjava_core.
@drigz
Copy link
Member Author

drigz commented Feb 28, 2018

@jubeira Thanks, that was easier than I thought!

Copy link

@jubeira jubeira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not that familiar with Bazel builds, so in this case I trust your judgement.

The only high level comment I have is the version used for the dependencies. Does Bazel use semantic versioning? Perhaps it would be better to use a range of versions as in Gradle buildscripts.

@drigz
Copy link
Member Author

drigz commented Feb 28, 2018

Nope, bazel-deps doesn't support version ranges: bazeltools/bazel-deps#46

@ensonic Could you review the (non-auto-generated) Bazel files here?

@drigz drigz removed the request for review from damonkohler February 28, 2018 13:37
@drigz drigz merged commit 62f865d into rosjava:kinetic Feb 28, 2018
@drigz drigz deleted the bazel branch February 28, 2018 15:14
@drigz
Copy link
Member Author

drigz commented Feb 28, 2018

Thank you both!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants