offbynull / coroutines

Java toolkit that allows you to write coroutines.
GNU Lesser General Public License v3.0
346 stars 53 forks source link

Gradle build failing with No value for xpath: main/output/classesDir #91

Open ivanr opened 4 years ago

ivanr commented 4 years ago

I was able to use runtime instrumentation in a quick PoC, but I couldn't get the Gradle plugin, with several different versions of Gradle. The error message is "No value for xpath: main/output/classesDir".

My code is https://github.com/ivanr/poc-conio. The code assumes runtime instrumentation. To replicate the error, please uncomment the plugin configuration.

Thanks.

offbynull commented 4 years ago

The place where this is failing is https://github.com/offbynull/coroutines/blob/master/gradle-plugin/src/main/java/com/offbynull/coroutines/gradleplugin/CoroutinesPlugin.java#L110 . It's trying to figure out where Gradle is putting the output classes.

I don't have the time to debug this. You can look into it if you want -- either the Gradle plugin is making certain assumptions it shouldn't be or the Gradle compiling phase changed around. This plugin was written a while ago.