Andrey Hihlovskiy
Professional blog on groovy, gradle, Java, Javascript and other stuff.
Tag Archives: web-application
Powerful feature in Gretty 0.0.24 – full support of Spring Boot 1.1.0
June 11, 2014
Posted by on Today is a wonderful day: Spring Boot 1.1.0 was released and I released Gretty version 0.0.24.
Gretty is a feature-rich gradle plugin for running web-apps on Jetty. It supports multiple Jetty versions (7, 8 and 9), multiple web-apps and many more. It wraps Jetty functions as convenient Gradle tasks and configuration DSL. A complete list of Gretty features is available in feature overview.
There is new powerful feature in Gretty 0.0.24: it supports running Spring Boot web-apps out-of-the-box. All Gretty features, including (but not limited to) debugging, code coverage and integration tests, also apply to spring-boot web-apps.
Simplest Gretty setup with Spring Boot:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext { | |
springBootVersion = '1.1.0.RELEASE' | |
} | |
repositories { | |
mavenLocal() | |
jcenter() | |
} | |
dependencies { | |
classpath "org.springframework.boot:spring-boot-loader-tools:${springBootVersion}" | |
classpath "org.springframework.boot:spring-boot-dependency-tools:${springBootVersion}" | |
classpath 'org.akhikhl.gretty:gretty-spring-boot-plugin:0.0.24' | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'gretty-spring-boot' |
You get Gretty as maven artifacts at jcenter and maven central under the group “org.akhikhl.gretty”.
Full Gretty sources and examples are available at https://github.com/akhikhl/gretty
Full Gretty documentation is available at http://akhikhl.github.io/gretty-doc/
Meet Gretty: advanced gradle plugin for running web-applications under Jetty and Tomcat
June 14, 2013
Posted by on I created little gradle plugin for running web-applications under Jetty 8.1.8.
The main advantage for a programmer is that now it’s possible to use servlet-api 3.0 and higher (under standard gradle-jetty plugin it was not possible, because jetty was too old).
Full sources, documentation and examples here:
https://github.com/akhikhl/gretty
Update 24.02.2014:
Now gretty supports jetty 7, 8 and 9 and servlet API 2.5, 3.0.1 and 3.1.0, as well as it brings many new interesting features!
Update 07.10.2014
Now Gretty supports Tomcat 7 and 8, as well as SpringBoot, spring-reloaded and jacoco!
Recent Comments