Skip to content

Build Error when using 'gradlew dist' more than once consecutively #687

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

Closed
rupeshkumar22 opened this issue Apr 24, 2022 · 2 comments · Fixed by #688
Closed

Build Error when using 'gradlew dist' more than once consecutively #687

rupeshkumar22 opened this issue Apr 24, 2022 · 2 comments · Fixed by #688

Comments

@rupeshkumar22
Copy link
Contributor

rupeshkumar22 commented Apr 24, 2022

The latest build works well with gradlew dist command. However, The following issue arises when using gradlew dist more than once(one by one).

ConsecutiveDistErrorCapture

Possible Reasons
The error arises due to Gradle 7 upgrade changes, it seems no other changes raise the issue. The issue was not there in Gradle 6.8.3. Jar files are not getting generated properly in build folders of Core, AR, and VR libraries on running gradlew dist again.

Working Solution
Deleting build folders of respected libraries Core, AR, and VR or just running gradlew clean before running gradlew dist resolves the issue. A task can also be defined to delete build folders of libraries on running gradlew dist just before the task to create jar files.

@codeanticode
Copy link
Contributor

Yes I noticed this, and just started running gradle clean every time before build or dist. Do you have any idea why this is happening?

@rupeshkumar22
Copy link
Contributor Author

rupeshkumar22 commented Apr 24, 2022

If we look at the changes in details of 7.0 from 6.0, I see some changes have been done on buildSrc.jar generation and some deprecated methods of javaCompile have been removed. More information is available here and here I'm looking into it.

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

Successfully merging a pull request may close this issue.

2 participants