Skip to content

Prepare IDE app for multiproject build

Andrey Hihlovskiy edited this page Apr 23, 2014 · 21 revisions

We already configured IDE products. Now we prepare IDE app for multiproject build.

  1. Create "build.gradle" in "tutorials" folder (parent of "MyIdeApp" folder)

  2. Move "buildscript" and "repositories" from "tutorials/MyIdeApp/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:0.0.1'
  }
}

subprojects {
  repositories {
    mavenLocal()
    jcenter()
  }
}

"tutorials/MyIdeApp/build.gradle":

apply plugin: 'java'
apply plugin: 'eclipse-ide-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'
  archiveProducts = true
}
  1. Create "settings.gradle" in "tutorials" folder (parent of "MyIdeApp" folder), insert code:
include 'MyIdeApp'
  1. Invoke on command line in "tutorials" folder:
gradle build

CHECK: Build task generates products in "tutorials/MyIdeApp/build/output" folder.

The example code for this page: tutorialExamples/IdeApp-3.

Next page: Create Eclipse bundle and use it in IDE app.

Clone this wiki locally