What is Composer.json Format in Magento 2.3 & After Upgrade in Magento 2.4 Enterprise Edition & Commerce Cloud Edition

Once you upgrade Magento 2.3 Enterprise Edition & Commerce Cloud Edition To Magento 2.4 Enterprise Edition & Commerce Cloud Edition

Format Composer.json [ Magento 2.3 Enterprise Edition & Commerce Cloud Edition ]

{

    "name": "magento/project-enterprise-edition",

    "description": "eCommerce Platform for Growth (Enterprise Edition)",

    "type": "project",

    "version": "2.4.0",

    "license": "OSL-3.0",

    "config": {

        "preferred-install": "dist",

        "sort-packages": true

    },

    "repositories": {

        "repo": {

            "type": "composer",

            "url": "https://repo.magento.com"

        }

    },

    "require": {
        "aheadworks/module-blog": "^2.7",
        "cloudinary/cloudinary-magento2": "1.15.2",
        "cybersource/global-payment-management": "3.3.0",
        "dotmailer/dotmailer-magento2-extension": ">=4.4.0 <4.5.1",
        "laminas/laminas-mime": "^2.7",
        "magento/magento-cloud-metapackage": ">=2.3.5 <2.3.6"
    },

    "suggest": {

        "ext-pcntl": "Need for run processes in parallel mode"

    },

    "conflict": {

        "gene/bluefoot": "*"

    },

    "autoload": {

        "psr-4": {

            "Magento\\Setup\\": "setup/src/Magento/Setup/",

            "Magento\\": "app/code/Magento/",

            "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"

        },

        "psr-0": {

            "": [

                "app/code/",

                "generated/code/"

            ]

        },

        "files": [

            "app/etc/NonComposerComponentRegistration.php"

        ],

        "exclude-from-classmap": [

            "**/dev/**",

            "**/update/**",

            "**/Test/**"

        ]

    },

    "autoload-dev": {

        "psr-4": {

            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",

            "Magento\\Tools\\": "dev/tools/Magento/Tools/",

            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",

            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",

            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"

        }

    },

    "minimum-stability": "alpha",

    "prefer-stable": true,

    "extra": {

        "component_paths": {

            "trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",

            "components/jquery": [

                "lib/web/jquery.js",

                "lib/web/jquery/jquery.min.js",

                "lib/web/jquery/jquery-migrate.js"

            ],

            "blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",

            "components/jqueryui": [

                "lib/web/jquery/jquery-ui.js"

            ],

            "twbs/bootstrap": [

                "lib/web/jquery/jquery.tabs.js"

            ],

            "tinymce/tinymce": "lib/web/tiny_mce_4"

        },

        "magento-force": true,

        "magento-deploystrategy": "copy",
		"composer-exit-on-patch-failure": true,
        "patches": {
            "magento/module-customer": {
               "Unsuscribe email: Customer sent newsletter unsubscribe email when registering for a new account": "m2-hotfixes/newsletter.patch"
            }
        }

    }

}

Format Composer.json [ Magento 2.4 Enterprise Edition & Commerce Cloud Edition ]

Once Upgrade Magento 2.3 Enterprise Edition & Commerce Cloud Edition To Magento 2.4 Enterprise Edition & Commerce Cloud Edition

{

    "name": "magento/project-enterprise-edition",

    "description": "eCommerce Platform for Growth (Enterprise Edition)",

    "type": "project",

    "version": "2.4.0",

    "license": "OSL-3.0",

    "config": {

        "preferred-install": "dist",

        "sort-packages": true

    },

    "repositories": {

        "repo": {

            "type": "composer",

            "url": "https://repo.magento.com"

        }

    },

    "require": {
        "magento/product-enterprise-edition": "2.4.0",
		"aheadworks/module-blog": "^2.7",
        "cybersource/global-payment-management": "3.3.0",
        "dotmailer/dotmailer-magento2-extension": "4.6.0",
        "laminas/laminas-mime": "^2.7",
        "magento/magento-cloud-metapackage": ">=2.4.0 <2.4.3"
    },

    "suggest": {

        "ext-pcntl": "Need for run processes in parallel mode"

    },

    "conflict": {

        "gene/bluefoot": "*"

    },

    "autoload": {

        "psr-4": {

            "Magento\\Setup\\": "setup/src/Magento/Setup/",

            "Magento\\": "app/code/Magento/",

            "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"

        },

        "psr-0": {

            "": [

                "app/code/",

                "generated/code/"

            ]

        },

        "files": [

            "app/etc/NonComposerComponentRegistration.php"

        ],

        "exclude-from-classmap": [

            "**/dev/**",

            "**/update/**",

            "**/Test/**"

        ]

    },

    "autoload-dev": {

        "psr-4": {

            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",

            "Magento\\Tools\\": "dev/tools/Magento/Tools/",

            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",

            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",

            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"

        }

    },

    "minimum-stability": "alpha",

    "prefer-stable": true,

    "extra": {

        "component_paths": {

            "trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",

            "components/jquery": [

                "lib/web/jquery.js",

                "lib/web/jquery/jquery.min.js",

                "lib/web/jquery/jquery-migrate.js"

            ],

            "blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",

            "components/jqueryui": [

                "lib/web/jquery/jquery-ui.js"

            ],

            "twbs/bootstrap": [

                "lib/web/jquery/jquery.tabs.js"

            ],

            "tinymce/tinymce": "lib/web/tiny_mce_4"

        },

        "magento-force": true,

        "magento-deploystrategy": "copy",
		"composer-exit-on-patch-failure": true,
        "patches": {
            "magento/module-customer": {
               "Unsuscribe email: Customer sent newsletter unsubscribe email when registering for a new account": "m2-hotfixes/newsletter.patch"
            }
        }

    }

}

Other important Magento 2.4.x issue as below

Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache etc


Magento 2.4.3-p1 Installation Steps


Magento 2.4.3 Installation Steps


Magento 2.4.3 Features


Magento 2.4.3 – p1 Features


Magento 2.4 Two Factor Authentication


Magento 2.4.1 Features


Magento 2.4 Features


Magento 2.4 Installation


Magento 2.2, Magento 2.3, Magento2.4 Installation Issue on Windows 10, XAMPP


Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’

Leave a Reply

Your email address will not be published. Required fields are marked *