Here is how I did it. Notice the custom "provided" configuration...
http://anonsvn.jboss.org/repos/hibernate/core/branches/gradle/build.gradle http://anonsvn.jboss.org/repos/hibernate/core/branches/gradle/hibernate-core/build.gradle I spoke with Adam about this and he agreed this was a worthwhile thing to add to gradle proper, though I did not find a JIRA issue covering it. So I just added one: http://jira.codehaus.org/browse/GRADLE-784 On Mon, 2009-12-21 at 06:15 -0800, Narco wrote: > 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. -- Steve Ebersole <[email protected]> Hibernate.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
