From 5e81512bfc98f5d1daeb3eddc0e58e3fdf221644 Mon Sep 17 00:00:00 2001 From: gelder Date: Mon, 22 Dec 2014 19:13:40 +0100 Subject: [PATCH] Made springdataneo4j.gradle compatible to Gradle 2.x Property "classesDir" was deprecated and has been removed from gradle. Replaced it with "output". New definitions need to be prepended by "def". --- build/gradle/springdataneo4j.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/gradle/springdataneo4j.gradle b/build/gradle/springdataneo4j.gradle index 80cc7b020..2159695d3 100644 --- a/build/gradle/springdataneo4j.gradle +++ b/build/gradle/springdataneo4j.gradle @@ -15,18 +15,18 @@ dependencies{ task compileJava(overwrite: true, description: 'Compiles AspectJ Source', type: Ajc) { dependsOn processResources - sourceSet = sourceSets.main + def sourceSet = sourceSets.main inputs.files(sourceSets.main.java.srcDirs) - outputs.dir(sourceSet.classesDir) - aspectPath = configurations.aspectpath + outputs.dir(sourceSet.output) + def aspectPath = configurations.aspectpath } task compileTestJava(overwrite: true, description: 'Compiles AspectJ Test Source', type: Ajc) { dependsOn processTestResources, compileJava, jar - sourceSet = sourceSets.test + def sourceSet = sourceSets.test inputs.files(sourceSets.test.java.srcDirs) - outputs.dir(sourceSet.classesDir) - aspectPath = files(configurations.aspectpath, jar.archivePath) + outputs.dir(sourceSet.output) + def aspectPath = files(configurations.aspectpath, jar.archivePath) } class Ajc extends DefaultTask {