Andrey Hihlovskiy
Professional blog on groovy, gradle, Java, Javascript and other stuff.
Tag Archives: spring
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:
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/
Recent Comments