Browse Source

Forgot to update api to latest version.

Replaced deprecated << operator with doLast.
pull/122/head
Michael Weinberger 8 years ago
parent
commit
e00f623a25
  1. 4
      demo_gradle/api/build.gradle
  2. 26
      demo_gradle/build.gradle

4
demo_gradle/api/build.gradle

@ -1,5 +1,5 @@
dependencies { dependencies {
compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'ro.fortsoft.pf4j:pf4j:1.1.1'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'
} }

26
demo_gradle/build.gradle

@ -7,18 +7,20 @@ subprojects {
} }
} }
task copyPlugins() << { task copyPlugins() {
delete 'app/plugins' doLast {
mkdir 'app/plugins' delete 'app/plugins'
mkdir 'app/plugins'
subprojects.each { p -> subprojects.each { p ->
if (p.path.contains(":plugins/")) { if (p.path.contains(":plugins/")) {
System.out.println("Copying plugin from " + p.path); System.out.println("Copying plugin from " + p.path);
copy { copy {
from p.projectDir.toString() + '/build/libs' from p.projectDir.toString() + '/build/libs'
into 'app/plugins' into 'app/plugins'
include '*.zip' include '*.zip'
} }
}
}
} }
}
} }

Loading…
Cancel
Save