45 lines
871 B
Groovy
45 lines
871 B
Groovy
description = 'Spring-Cloud Cloud Foundry Connector'
|
|
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
dependencies {
|
|
compile project(':spring-cloud-core')
|
|
compile("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
|
|
}
|
|
|
|
shadowJar {
|
|
classifier = null
|
|
dependencies {
|
|
include dependency('com.fasterxml.jackson.core:jackson-.*')
|
|
}
|
|
relocate 'com.fasterxml.jackson', 'org.springframework.cloud.cloudfoundry.com.fasterxml.jackson'
|
|
}
|
|
|
|
assemble.dependsOn shadowJar
|
|
install.dependsOn shadowJar
|
|
|
|
configurations {
|
|
tests
|
|
}
|
|
|
|
task testJar(type: Jar) {
|
|
classifier = 'tests'
|
|
from sourceSets.test.output
|
|
}
|
|
|
|
build.dependsOn testJar
|
|
|
|
artifacts {
|
|
tests testJar
|
|
archives testJar
|
|
}
|