HHH-6106 - Fix up IntelliJ project generation

This commit is contained in:
Steve Ebersole 2011-04-11 15:41:11 -05:00
parent 653bbfa46d
commit 3853152782
1 changed files with 3 additions and 27 deletions

View File

@ -174,32 +174,6 @@ subprojects { subProject ->
compileJava.dependsOn generateMainLoggingClasses compileJava.dependsOn generateMainLoggingClasses
compileJava.options.define(compilerArgs: ["-proc:none"]) compileJava.options.define(compilerArgs: ["-proc:none"])
task generateTestLoggingClasses(type: Compile) {
classpath = compileTestJava.classpath + configurations.jbossLoggingTool
source = sourceSets.test.originalJavaSrcDirs
destinationDir = aptDumpDir
options.define(
compilerArgs: [
"-nowarn",
"-proc:only",
"-processor", "org.jboss.logging.LoggingToolsProcessor",
"-s", "$sourceSets.test.generatedLoggingSrcDir.absolutePath"
]
);
outputs.dir sourceSets.test.generatedLoggingSrcDir;
doFirst {
sourceSets.test.generatedLoggingSrcDir.mkdirs()
}
}
// for the time being eat the annoying output from running the annotation processors
generateTestLoggingClasses.logging.captureStandardError(LogLevel.INFO)
compileTestJava.dependsOn generateTestLoggingClasses
compileTestJava.options.define(compilerArgs: ["-proc:none"])
manifest.mainAttributes( manifest.mainAttributes(
provider: 'gradle', provider: 'gradle',
'Implementation-Url': 'http://hibernate.org', 'Implementation-Url': 'http://hibernate.org',
@ -230,7 +204,9 @@ subprojects { subProject ->
sourceCompatibility = "1.6" sourceCompatibility = "1.6"
ideaModule { ideaModule {
// treat our "provided" configuration dependencies as "compile" scope dependencies in IntelliJ beforeConfigured { module ->
module.excludeFolders.clear()
}
scopes.COMPILE.plus.add( configurations.provided ) scopes.COMPILE.plus.add( configurations.provided )
whenConfigured { module -> whenConfigured { module ->
module.dependencies*.exported = true module.dependencies*.exported = true