@@ -2,9 +2,9 @@ apply plugin: 'java'
22apply plugin : ' war'
33apply plugin : ' idea'
44apply plugin : ' eclipse'
5- apply plugin : ' org.akhikhl.gretty'
6- // apply plugin: 'spring-boot'
7-
5+ // apply plugin: 'org.akhikhl.gretty'
6+ apply plugin : ' spring-boot'
7+ //
88// JDK 8
99sourceCompatibility = 1.8
1010targetCompatibility = 1.8
@@ -27,17 +27,24 @@ task warProduction(type: War){
2727
2828dependencies {
2929 // spring boot
30- compile(" org.springframework.boot:spring-boot-starter-web" )
30+ compile " org.springframework.boot:spring-boot-starter-web:1.3.0.M5"
31+ compile " org.springframework.boot:spring-boot-starter-jetty"
32+ compile " org.springframework.boot:spring-boot-starter-thymeleaf"
33+ compile " com.domingosuarez.boot:spring-boot-starter-jade4j:0.3.1"
34+ compile " org.springframework.boot:spring-boot-starter-redis"
35+ compile(group : ' org.springframework.boot' , name : ' spring-boot-starter' , version :' 1.3.0.M5' ) {
36+ exclude(module : ' spring-boot-starter-logging' )
37+ }
38+ compile ' org.springframework.boot:spring-boot-starter-log4j:1.3.0.M5'
39+ compile ' org.springframework.boot:spring-boot-starter-data-jpa:1.3.0.M5'
40+ compile ' org.springframework.boot:spring-boot-starter-security:1.3.0.M5'
3141
3242 // spring framework
3343 compile ' org.springframework:spring-context:4.2.1.RELEASE'
3444 compile ' org.springframework:spring-webmvc:4.1.7.RELEASE'
3545 compile ' org.springframework.security:spring-security-config:3.2.7.RELEASE'
3646 compile ' org.springframework.security:spring-security-web:3.2.7.RELEASE'
3747
38- compile ' org.thymeleaf:thymeleaf-spring4:+'
39- compile ' org.thymeleaf.extras:thymeleaf-extras-springsecurity3:+'
40-
4148 // persistence
4249 compile ' com.zaxxer:HikariCP:+'
4350 compile ' org.springframework:spring-orm:+'
@@ -99,10 +106,6 @@ dependencies {
99106 testCompile ' org.objenesis:objenesis:+'
100107 testCompile ' org.springframework:spring-test:+'
101108
102- compile ' javax.servlet:jstl:1.2'
103-
104- // include in compile only, exclude in the war
105- providedCompile ' javax.servlet:servlet-api:2.5'
106109}
107110
108111// Gretty Embedded Jetty
@@ -130,8 +133,9 @@ buildscript {
130133// Don't use Jetty8, even it's a servlet 3.0+ container,
131134// but not support non-jar WebApplicationInitializer scanning.
132135// It will cause "No Spring WebApplicationInitializer types detected on classpath"
133- gretty {
134- port = 8080
135- contextPath = ' '
136- servletContainer = ' jetty9' // tomcat7 or tomcat8
137- }
136+ // gretty {
137+ // port = 8080
138+ // contextPath = ''
139+ // servletContainer = 'jetty9' //tomcat7 or tomcat8
140+ // }
141+ //
0 commit comments