I believe this question was answered already but I was not able to find it. I
need simple thing: use gwt-dev-windows in main and test compilation but
exclude it from war packaging so it should look something like this:
usePlugin(JavaPlugin)
project.configurations {
gwt
compile.extendsFrom(gwt)
runtime.exclude(gwt)
testCompile.extendsFrom(gwt)
testRuntime.exclude(gwt)
}
dependencies {
compile project(':app-gwt')
compile ('gwt-servlet:gwt-servlet:1.7.1')
gwt ('gwt-dev-windows:gwt-dev-windows:1.7.1', 'gwt-user:gwt-user:1.7.1')
testCompile ('junit:junit:4.5')
}
Since gwt is platform specific I`ll add needed libs from GWT_HOME when
needed. At the same time I need compilation to work even if GWT_HOME is not
set.
--
View this message in context:
http://old.nabble.com/How-to-add-dependency-to-compile-but-not-to-runtime-configuration-tp26874515p26874515.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email