-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future of ament_build_type_gradle #9
Comments
@jacobperron In any case, there should be no need for |
@esteve Thanks for the reply 🙂
From trying to run examples, it appears we're missing some logic for setting the environment ( This logic from Even with
I'll do this too. |
I think that we'll likely want a support package suite analogous to ament_cmake, that contains common code for handling the installation of package.xml files and ament index registration. We don't have one in Python because the setuptools format doesn't allow us to depend on third-party libraries during the setup itself. Keeping the code central allows us to update it in only one place which is far preferable to the approach necessary in Python. |
I've added a support package |
Can you try to compile with colcon? I add a repo change that you could compile your ament java with colcon. Please try and let me know. |
As I understand it,
ament_tools
is deprecated having been replaced bycolcon
as the build tool for ROS distros newer than Bouncy. Further,ament_build_type_gradle
depends onament_tools
. I'm opening this issue to start a discussion about how to proceed for later ROS releases (e.g. Dashing).If I ignore
ament_build_type_gradle
, I'm able to build ROS 2 Dashing with Java support, except some runtime environment information is missing for gradle packages (e.g.CLASSPATH
,AMENT_PREFIX_PATH
) and the packages are not registered with the ament index. My main question is where should these things be handled?Should we keep the logic in
ament_build_type_gradle
and refactor so it doesn't useament_tools
?Or perhaps we can move all of the functionality into ament_gradle_plugin?
It seems like what we want is a new package
ament_index_java
(similar to the C++ and Python packages) that provides helpers for registering/querying entries in the ament index. Then this new Java API can be called fromament_gradle_plugin
or directly by the gradle package.I'm new to gradle, so I'm still doing some reading and experimenting.
The text was updated successfully, but these errors were encountered: