Monthly Archives: March 2013

Configuring Gradle behind a Proxy

If you are working with Gradle behind a proxy, you will need to configure Gradle with proxy information so it can download dependencies. Note: If you haven’t installed Gradle yet, read my post. In your user directory (e.g. c:\users\steve or

Posted in Gradle Tagged with:

Simple Spring MVC Web Application using Gradle

This post will be similar to our previous post, Simple Gradle Web Application, except we will now use Spring MVC, rather than raw servlets. It is really easy to get a basic Spring MVC application running with Gradle.You can download

Posted in Gradle, Spring Tagged with: , , ,

Simple Gradle Web Application

Gradle easily supports Java web applications through the “war” and “jetty” plugins. This tutorial will show you how to quickly make a simple Java Servlet web application. Our basic project structure will be: basic-web src main java com codetutr

Posted in Gradle, Java Tagged with: , , ,

How to Import Gradle Project into Eclipse

Gradle is a great configuration tool, but you obviously need to work inside your IDE too! The Gradle “eclipse” plugin supports easily importing your project into Eclipse. Here is an example: Create a new folder called basic-eclipse. Inside the folder,

Posted in Gradle Tagged with: ,

Basic Java Application Project Using Gradle

Here is how to setup a Gradle build to run a basic Java project through the main method: Create a folder for the project. In this example, we will name the folder basic-java. Create a Java file, called, inside

Posted in Gradle Tagged with: ,

How to Install Gradle

Gradle is a dependency management / build tool that combines the best of Maven and Ant, making it an extremely powerful and customizable tool. It also uses a sleek Groovy DSL instead of the XML approach of Maven and Ant

Posted in Gradle Tagged with: , ,

Joda-Time – How to Parse a String to Joda LocalDate

Parsing a string into a Joda-Time LocalDate object is easy. It took me a while to realize that LocalDate has a constructor which can take a date String. Example usage: The constructor’s signature is actually LocalDate(Object instant), which is why

Posted in Java Tagged with:


Follow Me

RSS FeedFollow me on Twitter