buildscript {
ext {
springBootVersion = '2.0.4.RELEASE'
}
// 自定义 Thymeleaf 和 Thymeleaf Layout Dialect 的版本
ext['thymeleaf.version'] = '3.0.9.RELEASE'
ext['thymeleaf-layout-dialect.version'] = '2.3.0'
repositories {
//mavenCentral()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
//依赖关系
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.gao'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
//mavenCentral()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
dependencies {
// compile('org.springframework.boot:spring-boot-logging')
// compile('org.springframework.boot:spring-boot-starter')
//compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}