Changed the Gradle build step to use 'bash' for executing the gradlew script. This ensures compatibility across different environments where the script might need a specific shell interpreter.
Revised the Gradle stage to use 'gradlew build' instead of 'gradlew shadowJar' for better compatibility. This change ensures the build process aligns with the default Gradle task and simplifies the Jenkins pipeline configuration.
Changed the Gradle command to explicitly run with bash. This ensures compatibility across different environments where the default shell might cause issues. The stage remains the same, focusing only on command execution improvement.