eProsima / Micro-XRCE-DDS

An XRCE DDS implementation. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
158 stars 15 forks source link

gradle build error #146

Closed mengchaoheng closed 2 years ago

mengchaoheng commented 2 years ago

when Installing the Micro XRCE-DDS Gen tool:

$ sudo apt install git openjdk-8-jdk gradle
$ git clone https://github.com/eProsima/Micro-XRCE-DDS-Gen.git
$ cd Micro-XRCE-DDS-Gen
$ git submodule init
$ git submodule update
$ gradle build -Dbranch=v1.2.5

output is :

parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ gradle build -Dbranch=v1.2.5

FAILURE: Build failed with an exception.

* Where:
Build file '/home/parallels/Micro-XRCE-DDS-Gen/build.gradle' line: 26

* What went wrong:
A problem occurred evaluating root project 'Micro-XRCE-DDS-Gen'.
> Could not find method compile() for arguments [file collection] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 298ms
mengchaoheng commented 2 years ago
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ sdk uninstall gradle 7.5.1

Deselecting gradle 7.5.1...

Uninstalling gradle 7.5.1...
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ sdk install gradle 6.8.3

Downloading: gradle 6.8.3

In progress...

############################################################################################################################################################### 100.0%

Installing: gradle 6.8.3
Done installing!

Setting gradle 6.8.3 as default.
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ gradle build -Dbranch=v1.2.5
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :IDL-Parser:compileJava FAILED
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.

> Task :buildIDLParser FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':IDL-Parser:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 10s
2 actionable tasks: 2 executed
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ 
pablogs9 commented 2 years ago

@Acuadros95 can you take a look? Please check this: https://github.com/eProsima/Fast-DDS-Gen/pull/129

mengchaoheng commented 2 years ago

eProsima/Fast-DDS-Gen#129

@pablogs9 https://github.com/eProsima/Micro-XRCE-DDS-Gen/issues/39

Acuadros95 commented 2 years ago

Closing, moving this issue to https://github.com/eProsima/Micro-XRCE-DDS-Gen/issues/39