@@ -2,11 +2,7 @@ apply plugin: 'java'
22apply plugin : ' idea'
33apply plugin : ' eclipse'
44apply plugin : ' spring-boot'
5- // apply plugin: 'org.akhikhl.gretty'
6- // apply plugin: 'war'
75
8- //
9- // JDK 8
106sourceCompatibility = 1.8
117targetCompatibility = 1.8
128
@@ -18,7 +14,7 @@ repositories {
1814 mavenCentral()
1915
2016 maven { url ' http://repo.spring.io/libs-release' }
21- maven { url " http://repo.springsource.org/repo" } // for springloaded
17+ maven { url " http://repo.springsource.org/repo" }
2218}
2319
2420bootRun {
@@ -29,11 +25,6 @@ configurations {
2925 compile. exclude module : " spring-boot-starter-tomcat"
3026}
3127
32- // task warProduction(type: War){
33- // destinationDir = file("$buildDir/dist")
34- // baseName = "$rootProject.name-production"
35- // }
36-
3728dependencies {
3829 // spring boot
3930 compile " org.springframework.boot:spring-boot-starter-web:1.3.0.M5"
@@ -118,7 +109,7 @@ dependencies {
118109
119110}
120111
121- // Gretty Embedded Jetty
112+
122113buildscript {
123114 ext {
124115 springBootVersion = ' 1.2.6.RELEASE'
@@ -130,22 +121,10 @@ buildscript {
130121
131122 maven { url " http://repo.spring.io/release" }
132123 maven { url " http://repo.spring.io/milestone" }
133- maven { url " http://repo.spring.io/snapshot" }
124+ // maven { url "http://repo.spring.io/snapshot" }
134125 }
135126
136127 dependencies {
137- classpath ' org.akhikhl.gretty:gretty:+'
138- classpath ' org.springframework:springloaded:1.2.4.RELEASE'
139128 classpath " org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} "
140129 }
141130}
142-
143- // Don't use Jetty8, even it's a servlet 3.0+ container,
144- // but not support non-jar WebApplicationInitializer scanning.
145- // It will cause "No Spring WebApplicationInitializer types detected on classpath"
146- // gretty {
147- // port = 8080
148- // contextPath = ''
149- // servletContainer = 'jetty9' //tomcat7 or tomcat8
150- // }
151- //
0 commit comments