Add inputs to AspectJ compilation tasks for change-detection purposes.

This commit is contained in:
Luke Taylor 2011-03-04 17:40:15 +00:00
parent 131c80f444
commit dc73bbef3f
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ dependencies {
task compileJava(overwrite: true, description: 'Compiles AspectJ Source', type: Ajc) {
dependsOn processResources
sourceSet = sourceSets.main
inputs.files(sourceSets.main.java.srcDirs)
outputs.dir(sourceSet.classesDir)
aspectPath = configurations.aspectpath
}
@ -20,6 +21,7 @@ task compileJava(overwrite: true, description: 'Compiles AspectJ Source', type:
task compileTestJava(overwrite: true, description: 'Compiles AspectJ Test Source', type: Ajc) {
dependsOn processTestResources, compileJava, jar
sourceSet = sourceSets.test
inputs.files(sourceSets.test.java.srcDirs)
outputs.dir(sourceSet.classesDir)
aspectPath = files(configurations.aspectpath, jar.archivePath)
}