eProsima / Micro-XRCE-DDS-Gen

Micro XRCE-DDS IDL code generator tool. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
10 stars 13 forks source link

Support for new gradle versions #40

Closed Acuadros95 closed 2 years ago

Acuadros95 commented 2 years ago

Updates gradle file for versions 7.x and 8.x

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

mengchaoheng commented 2 years ago
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ java -version
penjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode)
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ gradle -v
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/share/java/groovy-all.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

------------------------------------------------------------
Gradle 4.4.1
------------------------------------------------------------

Build time:   2012-12-21 00:00:00 UTC
Revision:     none

Groovy:       2.4.17
Ant:          Apache Ant(TM) version 1.10.7 compiled on October 24 2019
JVM:          11.0.16 (Ubuntu 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OS:           Linux 5.13.0-25-generic aarch64

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: 56

* What went wrong:
A problem occurred evaluating root project 'Micro-XRCE-DDS-Gen'.
> Could not get unknown property 'archiveVersion' for object of type org.gradle.api.java.archives.internal.DefaultManifest.

* 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 0s
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$

@Acuadros95

mengchaoheng commented 2 years ago

when I install gradle 7.5.1:

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

Downloading: gradle 7.5.1

In progress...

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

Installing: gradle 7.5.1
Done installing!

Setting gradle 7.5.1 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)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 35s
6 actionable tasks: 6 executed
parallels@ubuntu-linux-20-04-desktop:~/Micro-XRCE-DDS-Gen$ 

so the guide should be update @Acuadros95

Acuadros95 commented 2 years ago

Documentation updated on https://github.com/eProsima/Micro-XRCE-DDS-docs/pull/75