ros2_java icon indicating copy to clipboard operation
ros2_java copied to clipboard

How to deal with build failing with "colcon build"?

Open lyp92 opened this issue 2 years ago • 0 comments

When I compiled my project with "colcon build",it failed.I found error info in 'stdout_stderr.log':

  • What went wrong: Execution failed for task ':compileJava'. Configuration with name 'compile' not found.

And this is my 'build.gradle':

apply plugin: 'java' apply plugin: 'org.ros2.tools.gradle'

sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8

buildscript { repositories { jcenter() mavenCentral() mavenLocal() maven { url "https://plugins.gradle.org/m2/" } }

dependencies { classpath 'gradle.plugin.org.ros2.tools.gradle:ament:0.7.0' } }

repositories { mavenCentral() }

ament { entryPoints { consoleScripts = [ 'my_node = tld.domain.MyNode' ] } }

I got Ubuntu 22.04 with ROS2 Humble, Gradle 8.3 and Java 8 installed. Any ideas?

lyp92 avatar Dec 22 '23 00:12 lyp92