{"id":5948,"date":"2020-04-15T15:20:38","date_gmt":"2020-04-15T19:20:38","guid":{"rendered":"http:\/\/springframework.guru\/?p=5948"},"modified":"2020-04-15T15:20:38","modified_gmt":"2020-04-15T19:20:38","slug":"using-sdkman-for-your-development-environment","status":"publish","type":"post","link":"https:\/\/springframework.guru\/using-sdkman-for-your-development-environment\/","title":{"rendered":"Using SDKMAN for Your Development Environment"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>SDKMAN is a command line utility we can use to make managing our development environments easier. By using SDKMAN we can easily install, update, or switch to specific versions of popular tools such as the Java JDK, Maven, Gradle, and Groovy.<\/p>\n<p>In this tutorial, we will learn how to set up our Java development using SDKMAN.<\/p>\n<h2>Installing SDKMAN<\/h2>\n<p>The first thing we need to do is install <strong>SDKMAN<\/strong>. To learn how to install SDKMAN on your operating system head over to <a href=\"https:\/\/sdkman.io\/\">SDKMAN<\/a>.<\/p>\n<h2>Java<\/h2>\n<p>The first we need to install is <strong>Java<\/strong>. With SDKMAN we can install multiple versions of Java easily.<\/p>\n<h3>Display Available Versions of Java<\/h3>\n<p>To display the versions of Java that are available we use this <strong>command:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sdk list java<\/pre>\n<h3>Installing Latest Version of Java<\/h3>\n<p>To install the latest version of Java we use this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sdk install java<\/pre>\n<h3>Installing a Specific Version of Java<\/h3>\n<p>To install a specific version of Java we this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sdk install java identifier<\/pre>\n<h2>Maven<\/h2>\n<p>Maven is a package management tool.<\/p>\n<h3>Display Available Versions of Maven<\/h3>\n<p>To display the versions of Maven that are available we use this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sdk list maven<\/pre>\n<h3>Installing the Lastest Version of Maven<\/h3>\n<p>To install the latest version of Maven we use this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sdk install maven<\/pre>\n<h3>Installing a Specific Version of Maven<\/h3>\n<p>To install a specific version of Maven we this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk install maven verion-number<\/pre>\n<h2>Gradle<\/h2>\n<p>Gradle is another package management tool.<\/p>\n<h3>Display Available Versions of Gradle<\/h3>\n<p>To display the versions of Gradle that are available we use this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk list gradle<\/pre>\n<h3>Installing the Lastest Version of Gradle<\/h3>\n<p>To install the latest version of Gradle we use this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk install gradle<\/pre>\n<h3>Installing a Specific Version of Gradle<\/h3>\n<p>To install a specific version of Gradle we this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk install gradle verion-number<\/pre>\n<h2>Groovy<\/h2>\n<p>Groovy is a static and dynamic language that runs on the Java virtual machine (JVM).<\/p>\n<h3>Display Available Versions of Groovy<\/h3>\n<p>To display the versions of Groovy that are available we use this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk list groovy<\/pre>\n<h3>Installing the Latest Version of Groovy<\/h3>\n<p>To install a specific version of Groovy we this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk install groovy<\/pre>\n<h3>Installing a Specific Version of Groovy<\/h3>\n<p>To install a specific version of Groovy we this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk install groovy verion-number<\/pre>\n<h2>Spring Boot CLI<\/h2>\n<p>Spring Boot CLI allows you to create Spring applications from the command-line.<\/p>\n<h3>Display Available Versions of Spring Boot CLI<\/h3>\n<p>To display the versions of Spring Boot CLI that are available we use this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk list springboot<\/pre>\n<h3>Installing the Latest Version of Spring Boot CLI<\/h3>\n<p>To install a specific version of Spring Boot CLI we this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk install springboot<\/pre>\n<h3>Installing a Specific Version of Spring Boot CLI<\/h3>\n<p>To install a specific version of Spring Boot CLI we this <strong>command<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sdk install springboot verion-number<\/pre>\n<h2>Conclusion<\/h2>\n<p>In this tutorial you learned how easy it is to manage common Java development tools with SDKMAN. SDKMAN supports many more options. Please see the official SDKMAN documentation for complete details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction SDKMAN is a command line utility we can use to make managing our development environments easier. By using SDKMAN we can easily install, update, or switch to specific versions of popular tools such as the Java JDK, Maven, Gradle, and Groovy. In this tutorial, we will learn how to set up our Java development [&hellip;]<a href=\"https:\/\/springframework.guru\/using-sdkman-for-your-development-environment\/\" class=\"df-link-excerpt\">Continue reading<\/a><\/p>\n","protected":false},"author":111,"featured_media":4592,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[20],"tags":[27,40],"class_list":["post-5948","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java","tag-spring"],"jetpack_publicize_connections":[],"aioseo_notices":[],"modified_by":"jt","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/springframework.guru\/wp-content\/uploads\/2015\/03\/Banner560x292_07web.jpg","jetpack_shortlink":"https:\/\/wp.me\/p5BZrZ-1xW","_links":{"self":[{"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/posts\/5948"}],"collection":[{"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/users\/111"}],"replies":[{"embeddable":true,"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/comments?post=5948"}],"version-history":[{"count":10,"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/posts\/5948\/revisions"}],"predecessor-version":[{"id":6009,"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/posts\/5948\/revisions\/6009"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/media\/4592"}],"wp:attachment":[{"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/media?parent=5948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/categories?post=5948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/springframework.guru\/wp-json\/wp\/v2\/tags?post=5948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}