aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle/build.gradle
blob: e38a949cf569c1bafd0003fdce4baf7be8704643 (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
25
26
subprojects {
  apply plugin: 'java'

  repositories {
    mavenLocal()
    mavenCentral()
  }
}

task copyPlugins() {
    doLast {
        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'
                }
            }
        }
    }
}