Ai
1 Star 0 Fork 5

Alive/spring-groovy-samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
KennyLee 提交于 2015-01-13 23:34 +08:00 . 添加spring-boot-samples-data-jpa例子项目
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'
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Alive/spring-groovy-samples.git
git@gitee.com:Alive/spring-groovy-samples.git
Alive
spring-groovy-samples
spring-groovy-samples
master

搜索帮助