aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/gradle.vim
blob: de892a7eeae32b0dd1a9719406b2b0cca1dcc46c (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
27
28
" vim: ts=4 sw=4 et

function! neomake#makers#gradle#gradle() abort
    let g:gradleBin = filereadable('./gradlew') ? './gradlew' : 'gradle'

    return {
        \ 'exe': g:gradleBin,
        \ 'append_file': 0,
        \ 'args': ['assemble', '--daemon'],
        \ 'errorformat': '\%+ATask\ %.%#\ not\ found\ %.%#.,'.
        \'%EExecution\ failed\ for\ task\ %m,'.
        \'findbugs:\ %tarning\ %f:%l:%c\ %m,'.
        \'pmd:\ %tarning\ %f:%l:%c\ %m,'.
        \'checkstyle:\ %tarning\ %f:%l:%c\ %m,'.
        \'lint:\ %tarning\ %f:%l:%c\ %m,'.
        \'%A>\ %f:%l:%c:\ %trror:\ %m,'.
        \'%A>\ %f:%l:%c:\ %tarning:\ %m,'.
        \'%A%f:%l:\ %trror:\ %m,'.
        \'%A%f:%l:\ %tarning:\ %m,'.
        \'%A%f:%l:\ %trror\ -\ %m,'.
        \'%A%f:%l:\ %tarning\ -\ %m,'.
        \'%E%f:%l\ :\ %m,'.
        \'%C>\ %m,'.
        \'%-G%p^,'.
        \'%+G\ \ %.%#,'.
        \'%-G%.%#'
        \ }
endfunction