代码拉取完成,页面将自动刷新
同步操作将从 Kenny小狼/spring-groovy-samples 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
buildscript {
ext {
springBootVersion = '1.2.1.RELEASE'
}
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
configure(allprojects) { project ->
group = "spring-groovy-example"
version = '1.0'
ext {
junitVersion = "4.12"
gradleScriptDir = "${rootProject.projectDir}/gradle"
}
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'groovy'
compileJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
compileTestJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
sourceSets.test.resources.srcDirs = ["src/test/resources", "src/test/java"]
repositories {
jcenter()
mavenLocal() //使用maven本地缓存
}
dependencies {
compile("org.codehaus.groovy:groovy")
testCompile("junit:junit:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.springframework.boot:spring-boot-starter-test")
}
}
configure(subprojects.findAll { it.name.contains('spring-boot') }) {
configurations {
providedRuntime
}
dependencies {
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
providedRuntime("org.springframework.boot:spring-boot-loader")
compile("org.springframework.boot:spring-boot-starter-web")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
}
project("spring-boot-samples-simple") {
description = "简单的SpringBoot例子"
}
project("spring-boot-samples-data-jpa") {
description = "SpringBoot+SpringDataJpa+Mysql例子"
dependencies {
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("mysql:mysql-connector-java")
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。