minor build script fix in regards to setting apt dir

This commit is contained in:
Steve Ebersole 2015-05-14 12:13:40 -05:00
parent ae0b5f8577
commit 9a2baf5b20
1 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,6 @@ import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginConvention import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.publish.PublishingExtension import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.tasks.SourceSet
import org.gradle.api.tasks.compile.JavaCompile import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.testing.Test import org.gradle.api.tasks.testing.Test
import org.gradle.internal.jvm.Jvm import org.gradle.internal.jvm.Jvm
@ -134,7 +133,7 @@ class HibernateBuildPlugin implements Plugin<Project> {
// NOTE : this aptDir stuff is needed until we can have IntelliJ run annotation processors for us // NOTE : this aptDir stuff is needed until we can have IntelliJ run annotation processors for us
// which cannot happen until we can fold hibernate-testing back into hibernate-core/src/test // which cannot happen until we can fold hibernate-testing back into hibernate-core/src/test
// which cannot happen until... ugh // which cannot happen until... ugh
File aptDir = project.file( "${project.buildDir}/generated-src/apt/main" ) File aptDir = project.file( "${project.buildDir}/generated-src/apt/${sourceSet.name}" )
sourceSet.allJava.srcDir( aptDir ) sourceSet.allJava.srcDir( aptDir )
javaCompileTask.options.compilerArgs += [ javaCompileTask.options.compilerArgs += [