#!/bin/bash # Universal build script for Maven and Gradle projects echo "Current directory: $(pwd)" # Check for Gradle or Gradle Wrapper echo "Building Gradle project using wrapper: gradletest" cd "." chmod +x ./gradlew ./gradlew build cd - > /dev/null echo "Build complete. Build artifacts should be in their respective target/ or build/libs/ directories."