2015-05-19 00:23:35 -04:00
|
|
|
/*
|
|
|
|
* Hibernate, Relational Persistence for Idiomatic Java
|
|
|
|
*
|
|
|
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
|
|
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
|
|
|
*/
|
2018-01-10 16:06:58 -05:00
|
|
|
|
2019-10-23 16:19:31 -04:00
|
|
|
import org.gradle.plugins.ide.eclipse.model.ProjectDependency
|
|
|
|
|
2018-01-10 16:06:58 -05:00
|
|
|
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
|
|
|
|
|
|
|
|
description = 'Support for testing Hibernate ORM functionality'
|
|
|
|
|
2013-11-26 18:48:09 -05:00
|
|
|
dependencies {
|
|
|
|
compile project( ':hibernate-core' )
|
2019-06-05 15:33:21 -04:00
|
|
|
|
2013-11-26 18:48:09 -05:00
|
|
|
compile( libraries.junit )
|
2019-06-05 15:33:21 -04:00
|
|
|
compile( libraries.junit5_api )
|
|
|
|
compile( libraries.junit5_jupiter )
|
|
|
|
compile( libraries.junit5_params )
|
|
|
|
compile( 'org.hamcrest:hamcrest-all:1.3' )
|
|
|
|
|
|
|
|
runtime( libraries.junit5_vintage )
|
|
|
|
runtime( libraries.junit5_jupiter )
|
|
|
|
|
2013-11-26 18:48:09 -05:00
|
|
|
compile( libraries.byteman )
|
|
|
|
compile( libraries.byteman_install )
|
|
|
|
compile( libraries.byteman_bmunit )
|
|
|
|
compile( libraries.xapool )
|
2015-02-27 05:56:23 -05:00
|
|
|
compile( libraries.log4j )
|
2019-06-05 15:33:21 -04:00
|
|
|
compile( libraries.jboss_jta ) {
|
|
|
|
transitive = false;
|
2013-11-26 18:48:09 -05:00
|
|
|
}
|
2019-06-05 15:33:21 -04:00
|
|
|
compile( 'javax.money:money-api:1.0.1' )
|
|
|
|
compile( 'org.javamoney:moneta:1.1' )
|
|
|
|
|
|
|
|
annotationProcessor( project( ':hibernate-jpamodelgen' ) )
|
|
|
|
|
|
|
|
testRuntime( libraries.h2 )
|
|
|
|
testRuntime( libraries.log4j )
|
2013-11-26 18:48:09 -05:00
|
|
|
}
|
|
|
|
|
2015-02-27 05:56:23 -05:00
|
|
|
// resources inherently exclude sources
|
|
|
|
sourceSets.test.resources {
|
|
|
|
setSrcDirs( ['src/test/java'] )
|
|
|
|
}
|
|
|
|
|
2019-10-23 16:19:31 -04:00
|
|
|
tasks.eclipse.dependsOn(cleanEclipse)
|
|
|
|
eclipse {
|
|
|
|
classpath {
|
|
|
|
file {
|
|
|
|
whenMerged { classpath ->
|
|
|
|
Set exclusionSourceSet = [
|
|
|
|
//May be a saide efect of 'gradlew_process_test_resources' on hibernate-core.gradle. It will be?!
|
|
|
|
'/org.eclipse.ui.externaltools.ExternalToolBuilder'
|
|
|
|
]
|
|
|
|
List newSourceSet = []
|
|
|
|
classpath.entries.each { item ->
|
|
|
|
if( !exclusionSourceSet.contains( item.path ) ) {
|
|
|
|
//println( 'INCLUDING: ' + item )
|
|
|
|
newSourceSet.add( item )
|
|
|
|
} else {
|
|
|
|
//println( 'NOT INCLUDING: ' + item )
|
|
|
|
}
|
|
|
|
}
|
|
|
|
println( 'newSourceSet:' )
|
|
|
|
println( newSourceSet )
|
|
|
|
|
|
|
|
def hibernateCore = new ProjectDependency('/hibernate-core')
|
|
|
|
newSourceSet += [
|
|
|
|
hibernateCore
|
|
|
|
]
|
|
|
|
classpath.entries = newSourceSet
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-26 18:53:31 -05:00
|
|
|
// todo : Fold into hibernate-core and publish in separate publications
|
2013-11-26 18:56:30 -05:00
|
|
|
// once http://issues.gradle.org/browse/GRADLE-2966 is resolved;
|
|
|
|
// that will allow us to keep the same artifactId and publish the pom
|
|
|
|
// with proper dependencies
|
2013-11-26 18:53:31 -05:00
|
|
|
|