Skip to content

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

Closed
@rupeshkumar22

Description

@rupeshkumar22

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions