HHH-5904 - Deploy just testing artifacts from hibernate-core, not all tests

This commit is contained in:
Steve Ebersole 2011-02-08 14:27:57 -06:00
parent 011d7e1114
commit ef301deadc
1 changed files with 11 additions and 3 deletions

View File

@ -46,12 +46,20 @@ ideaModule {
sourceDirs.add( file( '$buildDir/generated-src/antlr/main' ) )
}
task testJar(type: Jar, dependsOn: compileJava) {
task testingJar(type: Jar, dependsOn: compileTestJava) {
from sourceSets.test.classes
includes += "org/hibernate/testing/*"
baseName = 'hibernate-testing'
}
task testingSourcesJar(type: Jar, dependsOn: compileTestJava) {
from sourceSets.test.allSource
classifier = 'tests'
includes += "org/hibernate/testing/*"
baseName = 'hibernate-testing'
classifier = 'sources'
}
artifacts {
archives sourcesJar, testJar
testing testingJar, testingSourcesJar
}