blob: 45c04fb2b366564e095b8f58b8b65bb7dd38a17e [file] [log] [blame]
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin:"groovy"
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'examples'
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if(details.requested.group == 'org.codehaus.groovy' && details.requested.name.startsWith('groovy')) {
details.useVersion(groovyVersion)
}
}
}
dependencies {
compile("org.springframework.boot:spring-boot-starter")
compile("org.springframework.boot:spring-boot-starter-web")
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.springframework.boot:spring-boot-starter-tomcat"
compile project(":gorm-hibernate5-spring-boot")
compile "org.hibernate:hibernate-core:$hibernate5Version"
compile "org.hibernate:hibernate-ehcache:$hibernate5Version"
runtime "com.h2database:h2:1.4.192"
runtime "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
runtime "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.2"
runtime "org.slf4j:slf4j-api:$slf4jVersion"
testCompile "org.spockframework:spock-core:$spockVersion"
testRuntime "org.slf4j:slf4j-simple:$slf4jVersion"
testCompile('org.springframework.boot:spring-boot-starter-test')
}
apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"