steffenschaefer / gwt-gradle-plugin

Gradle plugin to support GWT (http://www.gwtproject.org/) related tasks.
Other
117 stars 45 forks source link

Don't modify the testCompile/testRuntime configuration #89

Open christianbauer opened 9 years ago

christianbauer commented 9 years ago

The https://github.com/FinamTrade/slf4j-gwt project is not usable with this plugin. It calls GWT.create() on initialization and it therefore can't be on the server/test classpath.

The gwt-gradle-plugin always modifies the test classpath and adds depdencies to it, even if hasGwtTests is false. Don't modify my classpath. Don't do it in afterEvaluate, so I don't see it with the dependencies task.

christianbauer commented 9 years ago

Workaround:

test {
    dependsOn testClasses
    classpath = project.sourceSets.test.runtimeClasspath.filter {
        !it.absolutePath.contains("ru.finam")
    }
}