A new property has been introduced to enable persistent Gradle project naming in SAP Commerce Cloud, streamlining workflow for developers managing multiple versions.
A new property has been introduced that allows you to define a name of the root Gradle projects that are generated with ant gradle:
12gradle.project.name=<project-name>
The default value of this property is platform.
The value of this property is used as a name for a Gradle root project only when there's no explicit name provided in the ant gradle call. This means that if you generate a Gradle project with the following command, the myCustomProjectName value is used regardless of the value provided with the gradle.project.name property:
12ant gradle -DprojectName=myCustomProjectName
Why?
The new gradle.project.name property in offers a more efficient way to set Gradle project names, replacing the need to repeatedly use the -DprojectName option with the ant gradle command. This persistent, project-specific approach allows you to easily manage multiple SAP Commerce Cloud versions without constantly specifying the project name. The new property maintains backward compatibility by defaulting to platform if not set, and still allows the use of the -DprojectName option, which takes priority if both are specified. This enhancement particularly benefits those who frequently switch between different SAP Commerce Cloud projects in their IDE, streamlining their workflow and reducing potential errors from manual input.