{"id":20049,"date":"2013-12-30T13:00:58","date_gmt":"2013-12-30T11:00:58","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=20049"},"modified":"2013-12-30T08:59:10","modified_gmt":"2013-12-30T06:59:10","slug":"gradle-command-line-conveniences","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html","title":{"rendered":"Gradle Command-Line Conveniences"},"content":{"rendered":"<p>In my post <a href=\"http:\/\/marxsoftware.blogspot.com\/2011\/11\/first-look-at-building-java-with-gradle.html\">A First Look at Building Java with Gradle<\/a>, I briefly mentioned using <a href=\"http:\/\/www.gradle.org\/overview\">Gradle<\/a>&#8216;s &#8220;<code>gradle tasks<\/code>&#8221; command to see the available tasks for a particular Gradle build. In this post, I expand on that brief mention a bit more and look at some related Gradle command-line conveniences. Gradle makes it easy to determine available Gradle tasks for a given project. The next screen snapshot demonstrates using <code>gradle tasks<\/code> (or <code>gradle :tasks<\/code>) in the same directory as the simple Gradle build file (<code>build.gradle<\/code>) I used in <a href=\"http:\/\/marxsoftware.blogspot.com\/2011\/11\/first-look-at-building-java-with-gradle.html\">my previously mentioned Gradle post<\/a>. The screen snapshots follow the code listing of <code>build.gradle<\/code> which is reproduced here for convenience.<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h2>Basic Java Application build.gradle<\/h2>\n<pre class=\" brush:java\">apply plugin: 'java'<\/pre>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasks.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-20083\" alt=\"gradleHelloWorldTasks\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasks-275x300.png\" width=\"275\" height=\"300\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasks-275x300.png 275w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasks.png 677w\" sizes=\"(max-width: 275px) 100vw, 275px\" \/><\/a><\/p>\n<p>Adding <code>--all<\/code> to <code>gradle tasks<\/code> (<code>gradle tasks --all<\/code>) will show even more details (including tasks&#8217; dependencies) as shown in the next screen snapshot.<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasksAll.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-20084\" alt=\"gradleHelloWorldTasksAll\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasksAll-260x300.png\" width=\"260\" height=\"300\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasksAll-260x300.png 260w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleHelloWorldTasksAll.png 677w\" sizes=\"(max-width: 260px) 100vw, 260px\" \/><\/a><\/p>\n<p>Something I used to do often when working with an <a href=\"http:\/\/ant.apache.org\/\">Ant<\/a> build file new to me was to add a target &#8220;showProperties&#8221; that used a series of Ant <a href=\"http:\/\/ant.apache.org\/manual\/Tasks\/echo.html\">echo tasks<\/a> to display the properties used by that build file. Gradle provides essentially this capability out-of-the-box. The next screen snapshot demonstrates use of <code>gradle -q properties<\/code> to display the properties associated with the Gradle project and tasks in the <code>build.gradle<\/code> file in the same directory.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_display_properties.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-20085\" alt=\"gradle_display_properties\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_display_properties-300x278.png\" width=\"300\" height=\"278\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_display_properties-300x278.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_display_properties.png 677w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Another useful command-line Gradle option is <code>--profile<\/code>. This can be used in conjunction with running a Gradle command. For example, <code>gradle tasks --profile<\/code> generates the same standard output as shown above, but also writes build performance statistics to a file with the naming convention <code>profile-YYYY-MM-DD-HH-mm-ss.html<\/code> in the <code>build\/reports\/profile<\/code> subdirectory of the directory from which the build was executed. An example of that generated file is shown next.<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleProfilerOutput.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-20086\" alt=\"gradleProfilerOutput\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleProfilerOutput-300x205.png\" width=\"300\" height=\"205\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleProfilerOutput-300x205.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradleProfilerOutput.png 909w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The final Gradle command-line option I cover in this post is the &#8220;dry run&#8221; option <code>-m<\/code> (or <code>--dry-run<\/code>). This option allows one to see the Gradle tasks which are run and the order in which they are run without actually executing those tasks. Because the one-line Gradle <code>build.gradle<\/code> file used in this post applies the <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/java_plugin.html\">Java plugin<\/a>, the automatically added <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/java_plugin.html#N11E42\">Gradle Tasks<\/a> include <code>compileJava<\/code>, <code>classes<\/code>, <code>jar<\/code>, and <code>javadoc<\/code>. The following screen snapshot demonstrates running <code>gradle -m jar<\/code> to see the dry run output that shows the dependent tasks that must be run before &#8220;jar&#8221; and the order they must be run (compileJava-&gt;processResources-&gt;classes-&gt;jar). Note &#8220;SKIPPED&#8221; notation indicating that the Gradle tasks are not actually executed.<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_dry_run_output.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-20087\" alt=\"gradle_dry_run_output\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_dry_run_output-300x81.png\" width=\"300\" height=\"81\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_dry_run_output-300x81.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/12\/gradle_dry_run_output.png 677w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/tutorial_gradle_command_line.html\">Chapter 11<\/a> (&#8220;Using the Gradle Command-Line&#8221;) of the <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/userguide.html\">Gradle User Guide<\/a> (<a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/userguide.pdf\">PDF<\/a>) contains additional details regarding use of Gradle&#8217;s command-line interface with sections on <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/tutorial_gradle_command_line.html#N1085E\">listing projects<\/a>, <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/tutorial_gradle_command_line.html#sec:listing_tasks\">listing tasks<\/a>, <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/tutorial_gradle_command_line.html#sec:listing_dependencies\">listing project dependencies<\/a>, <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/tutorial_gradle_command_line.html#sec:listing_properties\">listing project properties<\/a>, and <a href=\"http:\/\/www.gradle.org\/docs\/current\/userguide\/tutorial_gradle_command_line.html#sec:dry_run\">listing the order Gradle tasks are executed<\/a>.<br \/>\n&nbsp;<\/p>\n<div style=\"border: 1px solid #D8D8D8; background: #FAFAFA; width: 100%; padding-left: 5px;\"><b><i>Reference: <\/i><\/b><a href=\"http:\/\/marxsoftware.blogspot.com\/2013\/12\/gradle-comand-line-conveniences.html\">Gradle Command-Line Conveniences<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Dustin Marx at the <a href=\"http:\/\/marxsoftware.blogspot.com\/\">Inspired by Actual Events <\/a> blog.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle&#8216;s &#8220;gradle tasks&#8221; command to see the available tasks for a particular Gradle build. In this post, I expand on that brief mention a bit more and look at some related Gradle command-line conveniences. Gradle makes it easy to determine &hellip;<\/p>\n","protected":false},"author":122,"featured_media":129,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[484],"class_list":["post-20049","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-gradle"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gradle Command-Line Conveniences<\/title>\n<meta name=\"description\" content=\"In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle&#039;s &quot;gradle tasks&quot; command to see the available tasks for a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gradle Command-Line Conveniences\" \/>\n<meta property=\"og:description\" content=\"In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle&#039;s &quot;gradle tasks&quot; command to see the available tasks for a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2013-12-30T11:00:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dustin Marx\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dustin Marx\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html\"},\"author\":{\"name\":\"Dustin Marx\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/945db7c24d37de80481570a5643f7958\"},\"headline\":\"Gradle Command-Line Conveniences\",\"datePublished\":\"2013-12-30T11:00:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html\"},\"wordCount\":428,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"keywords\":[\"Gradle\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html\",\"name\":\"Gradle Command-Line Conveniences\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"datePublished\":\"2013-12-30T11:00:58+00:00\",\"description\":\"In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle's \\\"gradle tasks\\\" command to see the available tasks for a\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/12\\\/gradle-command-line-conveniences.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Gradle Command-Line Conveniences\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/945db7c24d37de80481570a5643f7958\",\"name\":\"Dustin Marx\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a11cce21db49686299ad9afde297b5213759b39e79a54820195cf16b842639c0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a11cce21db49686299ad9afde297b5213759b39e79a54820195cf16b842639c0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a11cce21db49686299ad9afde297b5213759b39e79a54820195cf16b842639c0?s=96&d=mm&r=g\",\"caption\":\"Dustin Marx\"},\"sameAs\":[\"http:\\\/\\\/marxsoftware.blogspot.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Dustin-Marx\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gradle Command-Line Conveniences","description":"In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle's \"gradle tasks\" command to see the available tasks for a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html","og_locale":"en_US","og_type":"article","og_title":"Gradle Command-Line Conveniences","og_description":"In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle's \"gradle tasks\" command to see the available tasks for a","og_url":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2013-12-30T11:00:58+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","type":"image\/jpeg"}],"author":"Dustin Marx","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Dustin Marx","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html"},"author":{"name":"Dustin Marx","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/945db7c24d37de80481570a5643f7958"},"headline":"Gradle Command-Line Conveniences","datePublished":"2013-12-30T11:00:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html"},"wordCount":428,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","keywords":["Gradle"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html","url":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html","name":"Gradle Command-Line Conveniences","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","datePublished":"2013-12-30T11:00:58+00:00","description":"In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle's \"gradle tasks\" command to see the available tasks for a","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2013\/12\/gradle-command-line-conveniences.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Gradle Command-Line Conveniences"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/945db7c24d37de80481570a5643f7958","name":"Dustin Marx","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a11cce21db49686299ad9afde297b5213759b39e79a54820195cf16b842639c0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a11cce21db49686299ad9afde297b5213759b39e79a54820195cf16b842639c0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a11cce21db49686299ad9afde297b5213759b39e79a54820195cf16b842639c0?s=96&d=mm&r=g","caption":"Dustin Marx"},"sameAs":["http:\/\/marxsoftware.blogspot.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Dustin-Marx"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/20049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/122"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=20049"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/20049\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/129"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=20049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=20049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=20049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}