Gradle plugin project version number

前端 未结 2 1870
有刺的猬
有刺的猬 2021-01-02 04:29

I have a gradle plugin that uses the project.version variable.

How ever, the version in the plugin does not update when I change the version in the

2条回答
  •  失恋的感觉
    2021-01-02 04:44

    You can use gradle properties to extract project version without adding a dedicated task to the build.gradle file.

    For example:

    gradle properties -q | grep "version:" | awk '{print $2}'
    

提交回复
热议问题