24 lines
409 B
Groovy
24 lines
409 B
Groovy
description = 'Spring-Cloud Core'
|
|
|
|
configurations {
|
|
tests
|
|
published.extendsFrom tests, archives
|
|
}
|
|
|
|
task testJar(type: Jar) {
|
|
classifier = 'tests'
|
|
from sourceSets.test.output.classesDir
|
|
}
|
|
|
|
testJar.dependsOn testClasses
|
|
build.dependsOn testJar
|
|
|
|
artifacts {
|
|
tests testJar
|
|
}
|
|
|
|
install {
|
|
configuration = configurations.published
|
|
}
|
|
|
|
tasks.findByPath("artifactoryPublish")?.publishConfigs ('published') |