{"id":25931,"date":"2015-08-10T15:00:34","date_gmt":"2015-08-10T12:00:34","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=25931"},"modified":"2019-04-03T14:00:02","modified_gmt":"2019-04-03T11:00:02","slug":"gradle-netbeans-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/","title":{"rendered":"Gradle NetBeans Example"},"content":{"rendered":"<p>In this example, we will explain how to integrate Gradle with NetBeans IDE and how to perform basic Gradle tasks.<\/p>\n<h2>1. Why use Gradle in NetBeans IDE?<\/h2>\n<p>Gradle is a powerful tool for building and automation. It has many advantages, enabling the development of build scripts that are cross-platform and cross-IDE. You should have no problems migrating your Gradle-based applications to a different IDE or Continuous Integration server.<\/p>\n<h2>2. Requirements<\/h2>\n<ul>\n<li>NetBeans IDE 8.0.2<\/li>\n<li>JDK 1.7.0_67 (or higher)<\/li>\n<li>Gradle 2.3 (or higher)<\/li>\n<\/ul>\n<h2>3. Installing the Gradle Plugin in NetBeans IDE<\/h2>\n<p>The tasks that we will perform in this post are simple. To install Gradle in NetBeans IDE, go to Tools &gt; Plugins &gt; Available Plugins.<\/p>\n<p>Then, type &#8220;Gradle&#8221; and choose &#8220;Gradle Support&#8221; plugin, of which the author is Attila Kelemen, and click Install.<\/p>\n<p><figure id=\"attachment_25933\" aria-describedby=\"caption-attachment-25933\" style=\"width: 750px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-plugin.jpg\"><img decoding=\"async\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-plugin.jpg\" alt=\"Gradle NetBeans Plugin\" width=\"750\" height=\"477\" class=\"size-full wp-image-25933\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-plugin.jpg 750w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-plugin-300x191.jpg 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><figcaption id=\"caption-attachment-25933\" class=\"wp-caption-text\">Gradle NetBeans Plugin<\/figcaption><\/figure><\/p>\n<h2>4. How to Start using Gradle in NetBeans?<\/h2>\n<p>We will assume that you have installed Gradle in your computer if you didn&#8217;t have yet, take a look <a href=\"http:\/\/examples.javacodegeeks.com\/core-java\/gradle\/gradle-hello-world-tutorial\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>In this step we have to set the default configuration for Gradle&#8217;s environment.<\/p>\n<p>Then, go to Menu Tools &gt; Options &gt; Miscellaneous &gt; Gradle.<\/p>\n<p>Here we need to set 2 important and critical configurations in the Gradle Installation category.<\/p>\n<p><figure id=\"attachment_25936\" aria-describedby=\"caption-attachment-25936\" style=\"width: 768px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-location.jpg\"><img decoding=\"async\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-location.jpg\" alt=\"Gradle NetBeans Plugin Location\" width=\"768\" height=\"682\" class=\"size-full wp-image-25936\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-location.jpg 768w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-location-300x266.jpg 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/a><figcaption id=\"caption-attachment-25936\" class=\"wp-caption-text\">Gradle NetBeans Plugin Location<\/figcaption><\/figure><\/p>\n<p>First, make click in change button to set Gradle installation directory by giving a local folder, then do the another configuration, set Gradle user home, if you are a Windows user is on C:\\Users\\%USER_NAME%\\.gradle folder.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h2>5. Create your first Gradle Project<\/h2>\n<p>In NetBeans IDE we need to set a Root Project to start working, so open new project wizard, and in Gradle category choose Gradle Root Project and click next, give a project&#8217;s name and Maven Group Id, then click Finish.<\/p>\n<p><figure id=\"attachment_25939\" aria-describedby=\"caption-attachment-25939\" style=\"width: 789px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-project.jpg\"><img decoding=\"async\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-project.jpg\" alt=\"Gradle Root Project\" width=\"789\" height=\"521\" class=\"size-full wp-image-25939\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-project.jpg 789w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-project-300x198.jpg 300w\" sizes=\"(max-width: 789px) 100vw, 789px\" \/><\/a><figcaption id=\"caption-attachment-25939\" class=\"wp-caption-text\">Gradle Root Project<\/figcaption><\/figure><\/p>\n<p>Now, we have to add subprojects to the root project and make them run, so repeat the previous step but instead of choose root project, please select Gradle subproject. Then set the location of your root project so:<\/p>\n<p><figure id=\"attachment_25940\" aria-describedby=\"caption-attachment-25940\" style=\"width: 740px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-subproject.jpg\"><img decoding=\"async\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-subproject.jpg\" alt=\"Gradle Subproject\" width=\"740\" height=\"686\" class=\"size-full wp-image-25940\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-subproject.jpg 740w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-root-subproject-300x278.jpg 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><figcaption id=\"caption-attachment-25940\" class=\"wp-caption-text\">Gradle Subproject<\/figcaption><\/figure><\/p>\n<p>After this step, we have to set in <code>common.gradle<\/code> script the property <code>sourceCompatibility<\/code> to the JDK level 1.6, 1.7 or 1.8, for this example we change it to 1.7. Once you have adjusted the property, ensure that both projects (root and subproject) have the same configuration, make right click in the name of both projects and set all properties to Java compilation level 1.7.<\/p>\n<p><figure id=\"attachment_25943\" aria-describedby=\"caption-attachment-25943\" style=\"width: 760px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-project-properties.jpg\"><img decoding=\"async\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-project-properties.jpg\" alt=\"Gradle Project Properties\" width=\"760\" height=\"530\" class=\"size-full wp-image-25943\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-project-properties.jpg 760w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-netbeans-project-properties-300x209.jpg 300w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/a><figcaption id=\"caption-attachment-25943\" class=\"wp-caption-text\">Gradle Project Properties<\/figcaption><\/figure><\/p>\n<h2>6. Testing Gradle Project<\/h2>\n<p>Then, we have to add a simple class that executes a print console, so create a package and class on Gradle subproject called Greeting with only a main method.[ulp id=&#8217;1om4ygalA6VlPl7R&#8217;]<\/p>\n<p><span style=\"text-decoration: underline\"><em>Greeting.java<\/em><\/span><\/p>\n<pre class=\"brush:java\">package com.javacodegeeks.gradle.netbeans;\n\n\/**\n *\n * @author Andres Cespedes\n * @since 1.7\n *\/\npublic class Greeting {\n\n    public static void main(String[] args) {\n        System.out.println(\"Hello World JCG in Gradle NetBeans\");\n    }\n}\n<\/pre>\n<p>The last step is to set this class as Main Class, so in <code>build.gradle<\/code> script of subproject HelloProject type full name without extension. The build.gradle script may looks like this:<\/p>\n<pre class=\"brush:java\">    \/\/ Note: \"common.gradle\" in the root project contains additional initialization\n    \/\/   for this project. This initialization is applied in the \"build.gradle\"\n    \/\/   of the root project.\n\n    \/\/ NetBeans will automatically add \"run\" and \"debug\" tasks relying on the\n    \/\/ \"mainClass\" property. You may however define the property prior executing\n    \/\/ tasks by passing a \"-PmainClass=\" argument.\n    \/\/\n    \/\/ Note however, that you may define your own \"run\" and \"debug\" task if you\n    \/\/ prefer. In this case NetBeans will not add these tasks but you may rely on\n    \/\/ your own implementation.\n    if (!hasProperty('mainClass')) {\n        ext.mainClass = 'com.javacodegeeks.gradle.netbeans.Greeting'\n    }\n\n    dependencies {\n        \/\/ TODO: Add dependencies here\n        \/\/   but note that JUnit should have already been added in parent.gradle.\n        \/\/   By default, only the Maven Central Repository is specified in\n        \/\/   parent.gradle.\n        \/\/\n        \/\/ You can read more about how to add dependency here:\n        \/\/   http:\/\/www.gradle.org\/docs\/current\/userguide\/dependency_management.html#sec:how_to_declare_your_dependencies\n    }\n<\/pre>\n<p>So, make right click on subproject <strong>HelloProject<\/strong> then <code>Run<\/code>, the output will be this:<\/p>\n<p><figure id=\"attachment_25946\" aria-describedby=\"caption-attachment-25946\" style=\"width: 880px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-execution-output.jpg\"><img decoding=\"async\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-execution-output.jpg\" alt=\"NetBeans Gradle Output\" width=\"880\" height=\"283\" class=\"size-full wp-image-25946\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-execution-output.jpg 880w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/gradle-execution-output-300x96.jpg 300w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/a><figcaption id=\"caption-attachment-25946\" class=\"wp-caption-text\">NetBeans Gradle Output<\/figcaption><\/figure><\/p>\n<h2>7. Key Points<\/h2>\n<div class=\"tip\">\n<p><strong>Tips<\/strong><\/p>\n<ul>\n<li>Gradle NetBeans Plugin is unofficial yet, but Kelemen has done a great job.<\/li>\n<li>In NetBeans Gradle needs a multiproject structure, is mandatory a root project to work.<\/li>\n<li>All Gradle configuration needs to be done right in both places to ensure correctly operation, gradle build scripts and project properties.<\/li>\n<\/ul>\n<\/div>\n<h2>8. Download the NetBeans Project<\/h2>\n<p>This was an example of Gradle NetBeansPlugin.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/08\/rootProject.zip\"><strong>Gradle NetBeans Project<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this example, we will explain how to integrate Gradle with NetBeans IDE and how to perform basic Gradle tasks. 1. Why use Gradle in NetBeans IDE? Gradle is a powerful tool for building and automation. It has many advantages, enabling the development of build scripts that are cross-platform and cross-IDE. You should have no &hellip;<\/p>\n","protected":false},"author":37,"featured_media":20342,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[908],"tags":[906,563],"class_list":["post-25931","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gradle","tag-gradle","tag-netbeans"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Gradle NetBeans Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In this Gradle NetBeans example, we will work on use Gradle NetBeans Plugin, how configure it, and run basic Gradle tasks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gradle NetBeans Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In this Gradle NetBeans example, we will work on use Gradle NetBeans Plugin, how configure it, and run basic Gradle tasks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-10T12:00:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-03T11:00:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/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=\"Andres Cespedes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@acespedes12\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andres Cespedes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/\"},\"author\":{\"name\":\"Andres Cespedes\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/a32ee4d7e34cb21bfd2a5a68cf174f8a\"},\"headline\":\"Gradle NetBeans Example\",\"datePublished\":\"2015-08-10T12:00:34+00:00\",\"dateModified\":\"2019-04-03T11:00:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/\"},\"wordCount\":596,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg\",\"keywords\":[\"gradle\",\"Netbeans\"],\"articleSection\":[\"Gradle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/\",\"name\":\"Gradle NetBeans Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg\",\"datePublished\":\"2015-08-10T12:00:34+00:00\",\"dateModified\":\"2019-04-03T11:00:02+00:00\",\"description\":\"In this Gradle NetBeans example, we will work on use Gradle NetBeans Plugin, how configure it, and run basic Gradle tasks.\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Core Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Gradle\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/gradle\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Gradle NetBeans Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/a32ee4d7e34cb21bfd2a5a68cf174f8a\",\"name\":\"Andres Cespedes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/12\/Andres-Cespedes_avatar_1418741113-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/12\/Andres-Cespedes_avatar_1418741113-96x96.jpg\",\"caption\":\"Andres Cespedes\"},\"description\":\"Andres is a Java Software Craftsman from Medellin Colombia, who strongly develops on DevOps practices, RESTful Web Services, Continuous integration and delivery. Andres is working to improve software process and modernizing software culture on Colombia.\",\"sameAs\":[\"http:\/\/www.javacodegeeks.com\/\",\"http:\/\/co.linkedin.com\/in\/andrespedes12\",\"https:\/\/x.com\/acespedes12\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/andres-cespedes\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gradle NetBeans Example - Java Code Geeks","description":"In this Gradle NetBeans example, we will work on use Gradle NetBeans Plugin, how configure it, and run basic Gradle tasks.","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:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/","og_locale":"en_US","og_type":"article","og_title":"Gradle NetBeans Example - Java Code Geeks","og_description":"In this Gradle NetBeans example, we will work on use Gradle NetBeans Plugin, how configure it, and run basic Gradle tasks.","og_url":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2015-08-10T12:00:34+00:00","article_modified_time":"2019-04-03T11:00:02+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg","type":"image\/jpeg"}],"author":"Andres Cespedes","twitter_card":"summary_large_image","twitter_creator":"@acespedes12","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Andres Cespedes","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/"},"author":{"name":"Andres Cespedes","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/a32ee4d7e34cb21bfd2a5a68cf174f8a"},"headline":"Gradle NetBeans Example","datePublished":"2015-08-10T12:00:34+00:00","dateModified":"2019-04-03T11:00:02+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/"},"wordCount":596,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg","keywords":["gradle","Netbeans"],"articleSection":["Gradle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/","url":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/","name":"Gradle NetBeans Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg","datePublished":"2015-08-10T12:00:34+00:00","dateModified":"2019-04-03T11:00:02+00:00","description":"In this Gradle NetBeans example, we will work on use Gradle NetBeans Plugin, how configure it, and run basic Gradle tasks.","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/02\/gradle-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/gradle\/gradle-netbeans-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Core Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/"},{"@type":"ListItem","position":4,"name":"Gradle","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/gradle\/"},{"@type":"ListItem","position":5,"name":"Gradle NetBeans Example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/a32ee4d7e34cb21bfd2a5a68cf174f8a","name":"Andres Cespedes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/12\/Andres-Cespedes_avatar_1418741113-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2014\/12\/Andres-Cespedes_avatar_1418741113-96x96.jpg","caption":"Andres Cespedes"},"description":"Andres is a Java Software Craftsman from Medellin Colombia, who strongly develops on DevOps practices, RESTful Web Services, Continuous integration and delivery. Andres is working to improve software process and modernizing software culture on Colombia.","sameAs":["http:\/\/www.javacodegeeks.com\/","http:\/\/co.linkedin.com\/in\/andrespedes12","https:\/\/x.com\/acespedes12"],"url":"https:\/\/examples.javacodegeeks.com\/author\/andres-cespedes\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/25931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=25931"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/25931\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/20342"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=25931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=25931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=25931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}