Skip to content

Commit

Permalink
Add gradle task getdeps to enable caching at CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Oct 18, 2015
1 parent e025895 commit e2d6885
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ task releaseSourceTar(type: Exec) {
}
}

// fetch all dependencies to speedup CircleCI build
// see http://stackoverflow.com/a/27455099/873282 for an inspiration of this task
task getdeps(type: Copy) {
from sourceSets.test.runtimeClasspath
into 'build/tmp/alldeps/'
}

// workaround until https://issues.gradle.org/browse/GRADLE-2274 is resolved
eclipseJdt << {
File f = file('.settings/org.eclipse.core.resources.prefs')
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- unzip WinShell.zip
- sudo cp Plugins/x86-ansi/WinShell.dll /usr/share/nsis/Plugins/
override:
- TERM=dumb ./gradlew dependencies
- TERM=dumb ./gradlew getdeps

test:
override:
Expand Down

0 comments on commit e2d6885

Please sign in to comment.