Files
spring-data-geode/samples/hello-world/build.gradle
Costin Leau cc6f2a2095 + adjust build files
+ update changelog
2011-11-13 18:44:26 +02:00

45 lines
1.7 KiB
Groovy

description = 'Spring Data GemFire Samples - Hello World'
apply plugin: 'base'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'eclipse' // `gradle eclipse` to generate .classpath/.project
[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:-serial"]
repositories {
mavenLocal()
mavenCentral()
// Public Spring artefacts
mavenRepo name: "springsource-org-release", urls: "http://repository.springsource.com/maven/bundles/release"
mavenRepo name: "spring-release", urls: "http://maven.springframework.org/release"
mavenRepo name: "spring-milestone", urls: "http://maven.springframework.org/milestone"
mavenRepo name: "spring-snapshot", urls: "http://maven.springframework.org/snapshot"
mavenRepo name: "sonatype-snapshot", urls: "http://oss.sonatype.org/content/repositories/snapshots"
mavenRepo name: "ext-snapshots", urls: "http://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/"
mavenRepo name: "gemfire-release-repo", urls: "http://dist.gemstone.com/maven/release"
}
dependencies {
compile "org.springframework.data:spring-data-gemfire:$version"
compile "javax.inject:javax.inject:1"
compile "javax.annotation:jsr250-api:1.0"
testCompile "junit:junit:$junitVersion"
testCompile "org.springframework:spring-test:$springVersion"
}
sourceCompatibility = 1.5
targetCompatibility = 1.5
task run(type: JavaExec) {
description = 'Runs the application'
main = "org.springframework.data.gemfire.samples.helloworld.Main"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
systemProperties['java.net.preferIPv4Stack'] = 'true'
}
defaultTasks 'run'