aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle/build.gradle
blob: d2537c1bf420341c0cb2ffe83494950c232126e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
subprojects {
  apply plugin: 'java'

  repositories {
    mavenLocal()
    mavenCentral()
  }
}

task copyPlugins() << {
  delete 'app/plugins'
  mkdir 'app/plugins'

  subprojects.each { p ->
    if (p.path.contains(":plugins/")) {
      System.out.println("Copying plugin from " +  p.path);
      copy {
        from p.projectDir.toString() + '/build/libs'
        into 'app/plugins'
        include '*.zip'
      }
    }
  }
}