-
Notifications
You must be signed in to change notification settings - Fork 51
Prepare Equinox app for multiproject build
Andrey Hihlovskiy edited this page Jul 2, 2014
·
35 revisions
We already configured Equinox products. Now we prepare Equinox app for multiproject build.
Create "build.gradle" in "tutorials" folder (parent of "MyRcpApp" folder)
Move "buildscript" and "repositories" from "tutorials/MyRcpApp/build.gradle" to "tutorials/build.gradle", so that two scripts look like this:
"tutorials/build.gradle":
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath 'org.akhikhl.wuff:wuff-plugin:+'
}
}
subprojects {
repositories {
mavenLocal()
jcenter()
}
}
"tutorials/MyRcpApp/build.gradle":
apply plugin: 'java'
apply plugin: 'org.akhikhl.wuff.eclipse-rcp-app'
products {
product platform: 'linux', arch: 'x86_32'
product platform: 'linux', arch: 'x86_64'
product platform: 'windows', arch: 'x86_32'
product platform: 'windows', arch: 'x86_64'
product platform: 'macosx', arch: 'x86_64'
archiveProducts = true
}
Create "settings.gradle" in "tutorials" folder (parent of "MyRcpApp" folder), insert code:
include 'MyRcpApp'
Invoke on command line in "tutorials" folder: gradle build
Check: build task generates products in "tutorials/MyEquinoxApp/build/output" folder.
The example code for this page: examples/EquinoxApp-3.
Next page: Create OSGi-bundle and use it in Equinox app.