gradle 1.0-M3 update - AspectJPlugin to integrate with GenerateEclipseProject instead of GenerateEclipseClasspath
This commit is contained in:
parent
767f5b2423
commit
f37f5d43bc
|
@ -9,6 +9,7 @@ import org.gradle.api.tasks.SourceSet
|
|||
import org.gradle.api.DefaultTask
|
||||
import org.gradle.api.GradleException
|
||||
|
||||
import org.gradle.plugins.ide.eclipse.GenerateEclipseProject
|
||||
import org.gradle.plugins.ide.eclipse.GenerateEclipseClasspath
|
||||
import org.gradle.plugins.ide.eclipse.model.BuildCommand
|
||||
import org.gradle.tooling.model.ProjectDependency
|
||||
|
@ -52,7 +53,7 @@ class AspectJPlugin implements Plugin<Project> {
|
|||
aspectPath = project.files(project.configurations.aspectpath, project.jar.archivePath)
|
||||
}
|
||||
|
||||
project.tasks.withType(GenerateEclipseClasspath).all {
|
||||
project.tasks.withType(GenerateEclipseProject).all {
|
||||
whenConfigured { p ->
|
||||
p.natures.add(0, 'org.eclipse.ajdt.ui.ajnature')
|
||||
p.buildCommands = [new BuildCommand('org.eclipse.ajdt.core.ajbuilder',[:])]
|
||||
|
|
Loading…
Reference in New Issue