Can I use gradle. Properties for CI and Android studio respectively?

At present, I have a gradle.properties file. It is specially configured for CIS with low available memory, because otherwise the CI will crash

org.gradle.jvmargs=-Xmx1500m -XX:MaxPermSize=512m

However, when I build on the local computer, it is very slow and the local computer allows more memory use. Can I use gradle.properties for CI and Android studio respectively?

resolvent:

According to the documentation, you can have multiple gradle.properties files. One is in the project directory and the other is in the user's home directory

As said:

In your case, you can place CI specific properties in gradle.properties under the user's home directory on the CI server. This property will be specific to the CI server and take over the local properties stored in VCs

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>