Jimdo / gradle-apt-plugin

A Gradle plugin for the Java annotation processor tool
Apache License 2.0
47 stars 10 forks source link

plugin does not support test config #13

Open rgrigoryev opened 10 years ago

rgrigoryev commented 10 years ago

I try to use dagger on j2se (without android plugin), but unit test can not load my TestModule with error:

Module adapter for class MyTest$TestModule could not be loaded. Please ensure that code generation was run for this module.

Simple fix to It is to add apt to test sourceSet:

sourceSets {
    test {
        compileClasspath += configurations.apt
    }
}

Could it become a part of gradle-apt-plugin?