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 committed by JPAV
parent b2a7967624
commit dc59f6bdd1
1 changed files with 11 additions and 3 deletions

View File

@ -48,12 +48,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
}