DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Why I Like Using Gradle in NetBeans IDE (Part 1)

Why I Like Using Gradle in NetBeans IDE (Part 1)

To develop the project with Gradle and NetBeans IDE, I follow the steps below.

Martin Steffen user avatar by
Martin Steffen
·
Oct. 25, 12 · Tutorial
Like (1)
Save
Tweet
Share
29.11K Views

Join the DZone community and get the full member experience.

Join For Free

Greetings from Montevideo, Uruguay! My name is Martin Steffen and I use NetBeans IDE in my work as a developer. Also, I use NetBeans IDE in my career as a student. I use NetBeans IDE for all my projects and always have installed the latest NetBeans IDE version (waiting for the new support of HTML5 :) in NetBeans IDE 7.3).

In general, I love to research new technologies and now Gradle is my point of interest. Currently I am developinga web application withGradle, while using the Gradle Jetty plugin, (https://github.com/martins1930/atfsff/tree/master/Atfsff), and the build.gradle is the following: https://github.com/martins1930/atfsff/blob/master/Atfsff/build.gradle.

The NetBeans Gradle plugin has everything neededto develop this project:

http://plugins.netbeans.org/plugin/44510/gradle-support

To develop the project with Gradle and NetBeans IDE, I follow the steps below:

  1. Open the NetBeans Terminal window (Window | Output | Terminal) and run "gradle jettyRun", as you can see here:

  2. Right-click the project node in the Projects window and choose "build", as you can see here:

  3. Go to your browser and see your running application!
  4. End of development cycle. :)

When I modify JSP pages, and static resources (HTML/JS/CSS), I don't need to rebuild the project because you seethe changesin thebrowserinstantly. When I modify a Java class, I only need to re-build the project (but don't need to stop Jetty), that is, when building the project Jetty automatically redeploys the app for you.

Interesting features:

  • static resources (HTML/JS/CSS) are refreshed instantly, as stated above, which makes me feelproductive
  • redeploying in Jetty when building the project
  • the project dependencies are shows in the Projects window

Features I would like the plugin to have:

  • Open the browser when running a project; ifit is not verydifficult to implementthiswould begood to have.
  • Enable version control when right-clicking a project. The version control is disabled for Gradle projects as you can see in the second image above, while for Ant projects it is enabled, as you can see below:

  • Automatically build a project on saving. In Ant projects, you can check the option "Compile on Save" as you can see below:

  • Glassfish embedded tasks (similar to the Jetty tasks http://gradle.org/docs/current/userguide/jetty_plugin.html), for developing full JavaEE applications, though this feature is more for the Gradle team, perhaps.
Integrated development environment NetBeans Gradle

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Deploying Java Serverless Functions as AWS Lambda
  • Building a Scalable Search Architecture
  • How to Secure Your CI/CD Pipeline
  • Java Development Trends 2023

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: