
{"id":85,"date":"2011-09-07T21:28:26","date_gmt":"2011-09-07T20:28:26","guid":{"rendered":"http:\/\/serverdude.dk\/?p=85"},"modified":"2012-07-19T11:48:14","modified_gmt":"2012-07-19T10:48:14","slug":"building-and-testing-with-gradle","status":"publish","type":"post","link":"https:\/\/serverdude.dk\/?p=85","title":{"rendered":"Building and testing with Gradle"},"content":{"rendered":"<p><a href=\"http:\/\/www.amazon.com\/dp\/144930463X\/?tag=serverdude-20\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws.assoc-amazon.com\/widgets\/q?_encoding=UTF8&#038;Format=_SL110_&#038;ASIN=144930463X&#038;MarketPlace=US&#038;ID=AsinImage&#038;WS=1&#038;tag=serverdude-20&#038;ServiceVersion=20070822\" ><\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.assoc-amazon.com\/e\/ir?t=&#038;l=as2&#038;o=1&#038;a=144930463X&#038;camp=217145&#038;creative=399373\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/><\/p>\n<p>Written by <a href=\"http:\/\/twitter.com\/#%21\/tlberglund\">Tim Berglund<\/a> and <a href=\"http:\/\/twitter.com\/#%21\/matthewmccull\">Matthew McCullogh<\/a> published by O&#8217;Reilly, ISBN: 9781449304638<\/p>\n<p>The only book out there on Gradle, and it is relatively new published July 2011. At 110 pages it is rather short, and doesn&#8217;t cover everything about Gradle &#8211; it&#8217;s not a &#8216;Complete guide to Gradle&#8217;, but the 6 chapters cover the basics in the obvious ways:<\/p>\n<ol>\n<li>Hello, Gradle!<\/li>\n<li>Gradle Tasks<\/li>\n<li>Ant and Gradle<\/li>\n<li>Maven and Gradle<\/li>\n<li>Testing with Gradle<\/li>\n<li>Multiproject Builds<\/li>\n<\/ol>\n<p> The book does provide pointers for migrating from e.g. Maven to Gradle. As I&#8217;m not intimately familiar with neither Maven nor Gradle, I can&#8217;t really say if it is sufficient to jump from Ant directly into Gradle, or if a quick pit-stop in the Maven (3?) camp is beneficial.<\/p>\n<p>There are a few kind of typos in the book, e.g. Example 1-5 the src directory seems to be a subdirectory of the build.gradle file, this is fixed in Example 1-6 though.<\/p>\n<p> There&#8217;s also a minor issue with the doFirst() method &#8211; I&#8217;d suggest saying that this would prepend or prefix the closure to the existing block as opposed to saying appending to the beginning.<\/p>\n<p>The book is more concise and better organized than the <a href=\"http:\/\/gradle.org\/current\/docs\/userguide\/userguide_single.html\">Gradle user guide<\/a> which seems to do a halfbaked description, then referring to a later chapter. <\/p>\n<p>Running some modified examples from the book &#8211; not from the github repository &#8211; I experienced a rather detrimental blow up when applying the plugins for Scala and Groovy. The compiler dependencies need to be added to the build file.  <\/p>\n<p>Being the only book on the subject it&#8217;s sad that it&#8217;s not a Complete Guide, but it does fulfill what the title promises, it&#8217;s just not enough. An okay read though.<\/p>\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Written by Tim Berglund and Matthew McCullogh published by O&#8217;Reilly, ISBN: 9781449304638 The only book out there on Gradle, and it is relatively new published July 2011. At 110 pages it is rather short, and doesn&#8217;t cover everything about Gradle &#8211; it&#8217;s not a &#8216;Complete guide to Gradle&#8217;, but the 6 chapters cover the basics [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-books"],"_links":{"self":[{"href":"https:\/\/serverdude.dk\/index.php?rest_route=\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverdude.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverdude.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverdude.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverdude.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":18,"href":"https:\/\/serverdude.dk\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/serverdude.dk\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/serverdude.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverdude.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverdude.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}