How to pass parameters or arguments into a gradle task

前端 未结 6 2016
独厮守ぢ
独厮守ぢ 2020-12-29 00:41

I have a gradle build script into which I am trying to include Eric Wendelin\'s css plugin - http://eriwen.github.io/gradle-css-plugin/

Its easy enough to implement,

6条回答
  •  盖世英雄少女心
    2020-12-29 01:43

    Its nothing more easy.

    run command: ./gradlew clean -PjobId=9999

    and

    in gradle use: println(project.gradle.startParameter.projectProperties)

    You will get clue.

提交回复
热议问题