Posted In: Build Tools, Gradle

Gradle + Gretty advance configuration

Technologies used Gradle 2.14.1 Gretty Eclipse Neon JDK 1.8 For basic configuration add to build.gradle apply plugin: ‘war’ apply from: ‘https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin’ To change port and context gretty { httpPort = 8081 contextPath = ‘/MyWebApp’ } To change servlet container. Options are ‘jetty7’, ‘jetty8’, ‘jetty9’, ‘tomcat7’, ‘tomcat8’ gretty { servletContainer = ‘tomcat8’ } Note When you […]

Read More

Tags: ,

by , on February 1st, 2017

Posted In: Build Tools, Gradle

Gradle + Eclipse + Servlet3 + Jetty – Best way to create Servlet3 Gradle project using eclipse

Download example source and eclipse project Steps 1. Choose http://download.eclipse.org/releases/neon Then select Buildship gradle plug-in and install 2. Restart eclipse. Now choose New -> Other -> Gradle 3. Add project name 4. Select Gradle Wrapper 5. Click finish 6. Now add following to build.gradle //Use Gretty plugin for war. Jetty plugin will soon be removed […]

Read More

Tags: ,

by , on January 31st, 2017

  • Categories