gradle execute task after build

后端 未结 1 1400
孤城傲影
孤城傲影 2021-02-02 06:52

I am building my project with gradle, with the following build.gradle file:

project(\'a\'){
    apply plugin: \'java\'
    apply plugin: \'eclipse\'
    apply pl         


        
相关标签:
1条回答
  • 2021-02-02 07:30

    What you need is finalizedBy, see the following script:

    apply plugin: 'java'
    
    task finalize {
        doLast {
           println('finally!')
        }
    }
    
    build.finalizedBy(finalize)
    

    Here are the docs.

    0 讨论(0)
提交回复
热议问题