AbsaOSS / spline-spark-agent

Spline agent for Apache Spark
https://absaoss.github.io/spline/
Apache License 2.0
176 stars 92 forks source link

Add .sdkmanrc #649

Closed wajda closed 1 year ago

wajda commented 1 year ago

The full agent build requires an old Java 1.8, which is usually not a default Java version on a developer machines these days. For the dev convenience (for those who are using SDKMAN) to avoid manual installing and switching to the required Java version everytime one needto build Agent, we can add .sdkmanrc to the project.

Usage example:

# enter into the project dir
cd spline-spark-agent

# activate correct JDK for the project
sdk env

# Run Maven build as usual
mvn install

# Return to the default JDK when done with this project
sdk env clear

Or, if sdkman_auto_env setting is enabled in your SDKMAN config, than switching JDKs will even be done automatically on cd-ing into/out of the project dir.

Screenshot 2023-04-13 at 15 23 00