Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (68 sloc) 2.3 KB
buildscript {
repositories {
maven { url "http://repo.spring.io/libs-release" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
}
}
allprojects {
apply plugin: 'base'
}
subprojects { subproject ->
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
version = '0.1.0'
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-release" }
}
dependencies {
compile("org.springframework.data:spring-yarn-boot:2.4.0.RELEASE")
}
task copyJars(type: Copy) {
from "$buildDir/libs"
into "$rootDir/gs-yarn-batch-processing-dist/target/gs-yarn-batch-processing-dist/"
include "**/*.jar"
}
configurations {
compile.exclude group: "org.slf4j", module: "slf4j-log4j12"
runtime.exclude group: "org.slf4j", module: "slf4j-log4j12"
}
assemble.doLast {copyJars.execute()}
}
project('gs-yarn-batch-processing-client') {
apply plugin: 'spring-boot'
}
project('gs-yarn-batch-processing-appmaster') {
apply plugin: 'spring-boot'
dependencies {
compile("org.springframework.data:spring-yarn-batch:2.4.0.RELEASE")
runtime("org.springframework.boot:spring-boot-starter-batch:1.3.3.RELEASE")
}
}
project('gs-yarn-batch-processing-container') {
apply plugin: 'spring-boot'
dependencies {
compile("org.springframework.data:spring-yarn-batch:2.4.0.RELEASE")
runtime("org.springframework.boot:spring-boot-starter-batch:1.3.3.RELEASE")
}
}
project('gs-yarn-batch-processing-dist') {
dependencies {
compile project(":gs-yarn-batch-processing-client")
compile project(":gs-yarn-batch-processing-appmaster")
compile project(":gs-yarn-batch-processing-container")
testCompile("org.springframework.data:spring-yarn-boot-test:2.4.0.RELEASE")
testCompile("org.hamcrest:hamcrest-core:1.2.1")
testCompile("org.hamcrest:hamcrest-library:1.2.1")
}
test.dependsOn(':gs-yarn-batch-processing-client:assemble')
test.dependsOn(':gs-yarn-batch-processing-appmaster:assemble')
test.dependsOn(':gs-yarn-batch-processing-container:assemble')
clean.doLast {ant.delete(dir: "target")}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}