You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 871B

123456789101112131415161718192021222324252627282930313233
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. }
  5. dependencies {
  6. classpath group: 'org.gradle.api.plugins', name: 'gradle-clover-plugin', version: '0.8.2'
  7. }
  8. }
  9. import java.nio.file.Files;
  10. import java.nio.file.Paths;
  11. import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
  12. apply from: 'clover.gradle'
  13. apply from: 'local-dependency-change.gradle'
  14. task createWrapper(type: Wrapper) {
  15. description 'Downloads and installs an up-to-date wrapper for gradle.'
  16. gradleVersion = '2.1'
  17. }
  18. task installCommitIdHook {
  19. description 'Installs a git hook to insert Commit-Id lines into submodule commits.'
  20. doLast {
  21. def hook = Paths.get('etc/gerrit/commit-msg')
  22. file('.git/modules/').eachDir() {
  23. dir -> Files.copy(hook, dir.toPath().resolve('hooks').resolve('commit-msg'), REPLACE_EXISTING)
  24. }
  25. }
  26. }