gradlecrafter-cms

Crafter 3 Gradle bundle error


I am using Crafter 3.0.2 and trying to create deployable bundles through the gradle tooling provided by the craftercms project.

When executing gradlew build deploy bundle -Pcrafter.profile=true, I received the error message:

FAILURE: Build failed with an exception.

* Where:
Build file 'build.gradle' line: 774

* What went wrong:
Execution failed for task ':zipauthoring'.
> archive's size exceeds the limit of 4GByte.

The gradle suggestion following the error above is to enable zip64. So I added zip64 true to the build.gradle pack method's tasks.create("zip${envName}", Zip.class) {, and the bundle task completed successfully.

However, this approach seemed a little invasive. What is the proper procedure for producing a Crafter 3 bundle with profile enabled? If zip64 is to be used for the authoring bundle, is there a command line option that can be provided instead of editing build.gradle? Alternatively, is there a mechanism for creating only the tar.gz archive (which does not appear to have the 4gb file limitation) instead of the zip archive?


Solution

  • There is a ticket now to allow the users to select the bundle they want: https://github.com/craftercms/craftercms/issues/1669

    I've never seen a bundle exceed 600MB, you're pushing up against 4GB which is very unusual. While adding 64bit will help it push on, there might be another issue at play here.