2014-03-18 17:29:35 +08:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2015-12-17 21:15:14 +08:00
|
|
|
springBootVersion = '1.2.9.BUILD-SNAPSHOT'
|
2014-03-18 17:29:35 +08:00
|
|
|
}
|
|
|
|
repositories {
|
2014-03-26 07:00:55 +08:00
|
|
|
// NOTE: You should declare only repositories that you need here
|
2014-03-18 17:29:35 +08:00
|
|
|
mavenLocal()
|
2014-03-26 07:00:55 +08:00
|
|
|
mavenCentral()
|
|
|
|
maven { url "http://repo.spring.io/release" }
|
|
|
|
maven { url "http://repo.spring.io/milestone" }
|
|
|
|
maven { url "http://repo.spring.io/snapshot" }
|
2014-03-18 17:29:35 +08:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse-wtp'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'spring-boot'
|
|
|
|
apply plugin: 'war'
|
|
|
|
|
|
|
|
mainClassName = "sample.ui.SampleWebStaticApplication"
|
|
|
|
|
|
|
|
war {
|
|
|
|
baseName = 'spring-boot-sample-web-static'
|
2014-03-20 07:50:55 +08:00
|
|
|
version = '0.0.0'
|
2014-03-18 17:29:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2014-03-26 07:00:55 +08:00
|
|
|
// NOTE: You should declare only repositories that you need here
|
|
|
|
mavenLocal()
|
2014-03-18 17:29:35 +08:00
|
|
|
mavenCentral()
|
2014-03-26 07:00:55 +08:00
|
|
|
maven { url "http://repo.spring.io/release" }
|
|
|
|
maven { url "http://repo.spring.io/milestone" }
|
|
|
|
maven { url "http://repo.spring.io/snapshot" }
|
2014-03-18 17:29:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
2014-03-19 00:42:53 +08:00
|
|
|
providedRuntime
|
2014-03-18 17:29:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile("org.springframework.boot:spring-boot-starter-web")
|
2014-03-19 19:42:01 +08:00
|
|
|
compile("org.webjars:bootstrap:3.0.3")
|
|
|
|
compile("org.webjars:jquery:2.0.3-1")
|
2014-03-19 00:42:53 +08:00
|
|
|
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
|
2014-03-18 17:29:35 +08:00
|
|
|
testCompile("org.springframework.boot:spring-boot-starter-test")
|
|
|
|
}
|
|
|
|
|
|
|
|
task wrapper(type: Wrapper) { gradleVersion = '1.6' }
|