{"id":34421,"date":"2016-05-15T19:34:33","date_gmt":"2016-05-15T14:04:33","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=34421"},"modified":"2016-05-15T19:34:33","modified_gmt":"2016-05-15T14:04:33","slug":"auto-compilation-in-java-springboot-application","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/","title":{"rendered":"Auto compilation in java springboot application"},"content":{"rendered":"<p>To run springboot appllication there is a task <strong>&#8220;bootRun&#8221;<\/strong> which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required.<\/p>\n<p>In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time for developers. <\/p>\n<p>For automatic compilation in springboot, there is a gradle <a href=\"http:\/\/docs.spring.io\/spring-boot\/docs\/current-SNAPSHOT\/reference\/htmlsingle\/#howto-reload-springloaded-gradle-and-intellij-idea\" title=\"plugin\" target=\"_blank\">plugin<\/a> which need to be added in build.gradle.<br \/>\n[java]<br \/>\nbuildscript {<br \/>\n    repositories {<br \/>\n        mavenCentral()<br \/>\n    }<br \/>\n    dependencies {<br \/>\n        classpath &#8216;org.springframework:springloaded:1.2.4.RELEASE&#8217;<br \/>\n    }<br \/>\n[\/java]<\/p>\n<p>You need to run the gradle application in the same way using <strong>&#8220;gradle bootRun&#8221;<\/strong> command. And Now you need to open a separate terminal instance same as in the project folder and run <strong>&#8220;gradle -t classes&#8221;<\/strong> command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/05\/TwoTerminalZoom.png\" alt=\"TwoTerminalZoom\" width=\"1280\" height=\"224\" class=\"alignnone size-full wp-image-34427\" \/><\/p>\n<p>This gradle <strong>&#8220;classes&#8221;<\/strong> task is continiously track the changed files in the current project directory.<br \/>\nAll the changed files are re-compiled in this case and the .class files are replaced with the previous ones, so that all the changes can reflect to the output automatically.<\/p>\n<p>Finally, we do not need to re compile the springboot application for any change in the source file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To run springboot appllication there is a task &#8220;bootRun&#8221; which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time [&hellip;]<\/p>\n","protected":false},"author":203,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":19,"footnotes":""},"categories":[7,446,1994,1],"tags":[3320,3321,1511,4844,4841,3335,2072],"class_list":["post-34421","post","type-post","status-publish","format-standard","hentry","category-grails","category-java","category-software-development","category-technology","tag-auto-compile","tag-continuous-build","tag-gradle","tag-java","tag-spring","tag-spring-framework","tag-springboot"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"To run springboot appllication there is a task &quot;bootRun&quot; which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sanchit\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Auto compilation in java springboot application | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"To run springboot appllication there is a task &quot;bootRun&quot; which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Auto compilation in java springboot application | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"To run springboot appllication there is a task &quot;bootRun&quot; which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#article\",\"name\":\"Auto compilation in java springboot application | TO THE NEW Blog\",\"headline\":\"Auto compilation in java springboot application\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sanchit\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2016\\\/05\\\/TwoTerminalZoom.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#articleImage\"},\"datePublished\":\"2016-05-15T19:34:33+05:30\",\"dateModified\":\"2016-05-15T19:34:33+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#webpage\"},\"articleSection\":\"Grails, Java\\\/JVM, Software development, Technology, auto compile, continuous build, gradle, Java, Spring, spring framework, SpringBoot\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#listItem\",\"name\":\"Auto compilation in java springboot application\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#listItem\",\"position\":3,\"name\":\"Auto compilation in java springboot application\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sanchit\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sanchit\\\/\",\"name\":\"Sanchit\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/ef47782c-6d11-4d8c-b6a1-2c3d99c37fc9_4539-Sanchit-.-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Sanchit\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/\",\"name\":\"Auto compilation in java springboot application | TO THE NEW Blog\",\"description\":\"To run springboot appllication there is a task \\\"bootRun\\\" which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/auto-compilation-in-java-springboot-application\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sanchit\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sanchit\\\/#author\"},\"datePublished\":\"2016-05-15T19:34:33+05:30\",\"dateModified\":\"2016-05-15T19:34:33+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Auto compilation in java springboot application | TO THE NEW Blog","description":"To run springboot appllication there is a task \"bootRun\" which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time","canonical_url":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#article","name":"Auto compilation in java springboot application | TO THE NEW Blog","headline":"Auto compilation in java springboot application","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sanchit\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2016\/05\/TwoTerminalZoom.png","@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#articleImage"},"datePublished":"2016-05-15T19:34:33+05:30","dateModified":"2016-05-15T19:34:33+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#webpage"},"articleSection":"Grails, Java\/JVM, Software development, Technology, auto compile, continuous build, gradle, Java, Spring, spring framework, SpringBoot"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#listItem","name":"Auto compilation in java springboot application"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#listItem","position":3,"name":"Auto compilation in java springboot application","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/sanchit\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/sanchit\/","name":"Sanchit","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/ef47782c-6d11-4d8c-b6a1-2c3d99c37fc9_4539-Sanchit-.-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Sanchit"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/","name":"Auto compilation in java springboot application | TO THE NEW Blog","description":"To run springboot appllication there is a task \"bootRun\" which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sanchit\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sanchit\/#author"},"datePublished":"2016-05-15T19:34:33+05:30","dateModified":"2016-05-15T19:34:33+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Auto compilation in java springboot application | TO THE NEW Blog","og:description":"To run springboot appllication there is a task &quot;bootRun&quot; which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time","og:url":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Auto compilation in java springboot application | TO THE NEW Blog","twitter:description":"To run springboot appllication there is a task &quot;bootRun&quot; which compile and run the application for one deployment lifecyle. This is good enough for the production, where auto compilation is not required. In the dev environment auto compilation is used to avoid recompilation. Also it is very much needed to speed up the development time","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"34421","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 23:43:25","updated":"2024-02-29 08:58:00","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAuto compilation in java springboot application\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"Auto compilation in java springboot application","link":"https:\/\/www.tothenew.com\/blog\/auto-compilation-in-java-springboot-application\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/34421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/203"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=34421"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/34421\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=34421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=34421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=34421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}