diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle index 1c7971bc18..17a7469db1 100644 --- a/hibernate-core/hibernate-core.gradle +++ b/hibernate-core/hibernate-core.gradle @@ -1,8 +1,6 @@ apply plugin: 'java' apply plugin: 'antlr' -// todo : we need to jar up hibernate-testing.jar from here - dependencies { compile( libraries.commons_collections ) compile( libraries.jta ) @@ -50,5 +48,14 @@ ideaModule { sourceDirs.add( file( '$buildDir/generated-src/antlr/main' ) ) } +task testJar(type: Jar, dependsOn: compileJava) { + from sourceSets.test.allSource + classifier = 'test' +} + +artifacts { + archives sourcesJar, testJar +} + // http://jira.codehaus.org/browse/GRADLE-1158 test.testReport = false