1. 14 Dec, 2016 1 commit
    • Erik Zivkovic's avatar
      gradle: extract simple task names from subproject tasks (#5704) · 3b13dc07
      Erik Zivkovic authored
      Currently, only tasks with complete subproject specifier are added to
      .gradletasknamecache. Gradle commands can be called for all (sub-)projects
      they are defined for, using their name as defined in the subproject, here
      called "simple" task names. One example is "gradle clean".
      
      This patch adds support for parsing out those "simple" task names from the list
      of fully specified task names. The .gradletasknamecache file will contain
      both the fully specified names, and the "simple" names for your autocompletion
      pleasure.
      3b13dc07
  2. 15 Sep, 2016 1 commit
    • Erik Zivkovic's avatar
      Improve gradle plugin task parsing (#5230) · e4684368
      Erik Zivkovic authored
      * Improve gradle plugin task parsing
      
      Added _gradle and _gradlew as symbolic links to gradle.plugin.zsh,
      otherwise the plugin was not properly loaded.
      
      Output from `gradlew tasks --all` is now parsed in two levels,
      first we find segments between `------...` and a newline.
      Second, all those lines are parsed and cleaned using awk
      and added to .gradletasknamecache.
      
      Tested on gradle 2.13, and gradlew 2.14.
      
      * Remove .gradletasknamecache before regenerating it
      
      Remove the .gradletasknamecache file to avoid having an unnecessary
      newline at the top of the file when regenerating it.
      
      * Improve gradle task parsing by writing .gradletasknamecache atomically
      
      Previously the .gradletasknamecache file was written line by line inside a parsing loop,
      which could cause errors such as half-written cache files if the process was aborted.
      
      This also removes the need of deleting the .gradletasknamecache file before parsing.
      e4684368
  3. 21 Nov, 2015 2 commits
  4. 04 Oct, 2015 1 commit
  5. 17 Sep, 2015 1 commit
    • Alexander Olsson's avatar
      Use local gradlew · 5cf0a012
      Alexander Olsson authored
      Instead of requiring to add `cwd` to path, just use `gradlew` from the local folder. This is how most gradle wrapper projects are laid out
      5cf0a012
  6. 02 Sep, 2015 1 commit
  7. 25 Apr, 2015 1 commit
  8. 02 Jun, 2014 1 commit
  9. 12 Mar, 2013 1 commit
  10. 11 Aug, 2011 1 commit
    • Matthew Git McCullough's avatar
      Added a gradle build tool plugin · c2a95b79
      Matthew Git McCullough authored
      * Enhanced gradle plugin to parse tasks from a quick execution of the tool
      * Added a duplicated function for gradlew completion that uses gradlew internally. Builds like Gradle itself (built with Gradle) are sensitive to being run with a matching gradlew version.
      * Fixed broken caching of gradle task names. Added - and -- argument completions.
      c2a95b79