Create testArtifacts configuration for 'core' module. (#425)

This commit is contained in:
Chris Rankin 2017-03-24 13:33:54 +00:00 committed by GitHub
parent 6a21de74b3
commit 19ee4f2d7b
3 changed files with 19 additions and 6 deletions

View File

@ -23,7 +23,7 @@ dependencies {
// This adds support for java.time types.
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
testCompile project(':core').sourceSets.test.output
testCompile project(path: ':core', configuration: 'testArtifacts')
testCompile "junit:junit:$junit_version"
// TODO: Upgrade to junit-quickcheck 0.8, once it is released,

View File

@ -100,8 +100,21 @@ dependencies {
compile "io.requery:requery-kotlin:$requery_version"
}
configurations.compile {
// We want to use SLF4J's version of these binding: jcl-over-slf4j
// Remove any transitive dependency on Apache's version.
exclude group: 'commons-logging', module: 'commons-logging'
configurations {
compile {
// We want to use SLF4J's version of these binding: jcl-over-slf4j
// Remove any transitive dependency on Apache's version.
exclude group: 'commons-logging', module: 'commons-logging'
}
testArtifacts.extendsFrom testRuntime
}
task testJar(type: Jar) {
classifier "tests"
from sourceSets.test.output
}
artifacts {
testArtifacts testJar
}

View File

@ -24,7 +24,7 @@ dependencies {
compile project(':core')
testCompile project(':test-utils')
testCompile project(':core').sourceSets.test.output
testCompile project(path: ':core', configuration: 'testArtifacts')
testCompile "junit:junit:$junit_version"
// TODO: Upgrade to junit-quickcheck 0.8, once it is released,