| // this applied only to swt/* projects |
| subprojects { Project project -> |
| // only configure leaf projects. |
| if (!project.getSubprojects().isEmpty()) return |
| |
| apply plugin: 'distrib' |
| |
| // configuration for swt dependency since the packaged jar is platform dependent |
| // but at compile time we don't care. Also we don't want the artifact in the |
| // main repo, so use the provided configuration |
| configurations { |
| swt |
| } |
| |
| dependencies{ |
| swt "com.android.external.eclipse:swt:3.5.0" |
| compile 'com.android.external.eclipse:org-eclipse-jface:3.6.2' |
| testCompile "com.android.external.eclipse:swt:3.5.0" |
| } |
| |
| // include swt for compilation |
| sourceSets.main.compileClasspath += configurations.swt |
| } |