Gradle aspectj inpath

I have aspectJ task written for compile time weaving.
Iam using inpath to specify a path to the dynamically generated jar from the dependent task( i dont want to publish to artifactory)…
However when i run the aspectJ task first time, the inpath jar classes are not recognized and when i re run the task im able to execute without issues.
inpath: “$projectDir/src/bin/my-dependent.jar”

Please suggest…

roblem.

task compileJava(dependsOn: JavaPlugin.PROCESS_RESOURCES_TASK_NAME, overwrite: true) {

dependsOn configurations.ajc.getTaskDependencyFromProjectDependency(true, “compileJava”)

doLast{

ant.taskdef( resource:“org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties”, classpath: configurations.ajc.asPath)

ant.iajc(source:sourceCompatibility, target:targetCompatibility, destDir:sourceSets.main.output.classesDir.absolutePath, maxmem:“512m”, fork:“true”,

aspectPath:configurations.aspects.asPath, inpath:"$projectDir/src/bin/my-dependent.jar,
sourceRootCopyFilter:"/.svn/,/.java",classpath:configurations.compile.asPath){

sourceroots{

sourceSets.main.java.srcDirs.each{

pathelement(location:it.absolutePath)

}
}

}

}
}

I got the issue resolved