HHH-6618 enable idea support for matrix sourceset
This commit is contained in:
parent
e941eca2d5
commit
3b7bdb8ddc
|
@ -32,7 +32,16 @@ dependencies {
|
|||
manifest.mainAttributes(
|
||||
'Main-Class': 'org.hibernate.Version'
|
||||
)
|
||||
|
||||
sourceSets {
|
||||
matrix {
|
||||
java {
|
||||
srcDir 'src/matrix/java'
|
||||
}
|
||||
resources {
|
||||
srcDir 'src/matrix/resources'
|
||||
}
|
||||
}
|
||||
}
|
||||
sourceSets.main {
|
||||
originalJavaSrcDirs = java.srcDirs
|
||||
jaxbTargetDir = file( "${buildDir}/generated-src/jaxb/main" )
|
||||
|
@ -45,7 +54,9 @@ sourceSets.test.resources {
|
|||
}
|
||||
|
||||
ideaModule {
|
||||
sourceDirs.add( file( '$buildDir/generated-src/antlr/main' ) )
|
||||
sourceDirs += file( '$buildDir/generated-src/antlr/main' )
|
||||
testSourceDirs += file( 'src/matrix/java')
|
||||
testSourceDirs += file( 'src/matrix/resources')
|
||||
}
|
||||
|
||||
task jaxb {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: org.hibernate.gradle.testing.matrix.MatrixTestingPlugin
|
||||
//apply plugin: org.hibernate.gradle.testing.matrix.MatrixTestingPlugin
|
||||
|
||||
dependencies {
|
||||
shrinkwrapVersion = '1.0.0-beta-5'
|
||||
|
@ -27,9 +27,20 @@ sourceSets.test {
|
|||
generatedJpaMetamodelSrcDir = file( "${buildDir}/generated-src/jpamodelgen/${name}" )
|
||||
java.srcDir generatedJpaMetamodelSrcDir
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
matrix {
|
||||
java {
|
||||
srcDir 'src/matrix/java'
|
||||
}
|
||||
resources {
|
||||
srcDir 'src/matrix/resources'
|
||||
}
|
||||
}
|
||||
}
|
||||
ideaModule {
|
||||
excludeDirs += file("$buildDir/bundles")
|
||||
testSourceDirs += file( 'src/matrix/java')
|
||||
testSourceDirs += file( 'src/matrix/resources')
|
||||
}
|
||||
|
||||
task generateJpaMetamodelClasses(type: Compile) {
|
||||
|
|
Loading…
Reference in New Issue