Gradle - Include Properties File

前端 未结 9 1057
天命终不由人
天命终不由人 2020-12-08 04:13

How would I include a properties file in Gradle?

For example in Ant, I could do the following:



        
9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 04:23

    I would actually recommend using Gradle's default properties file. If you put the properties in gradle.properties in the same directory as the build.gradle, they will automatically be available.

    See the user guide.

提交回复
热议问题