Daemon is stopping immediately JVM garbage collector thrashing and after running out of JVM memory

I add gradle.properties file in my root project dir,and add this config: org.gradle.jvmargs=-Xmx4096M works. From the error message we can know the Daemon JVM spcace exhausted. This is the Gradle official docuemnt about this config: Specifies the JVM arguments used for the Gradle Daemon. The setting is particularly useful for configuring JVM memory settings for … Read more

How can I get the current git branch in gradle?

You also are able to get git branch name without the plug-in. def gitBranch() { def branch = “” def proc = “git rev-parse –abbrev-ref HEAD”.execute() proc.in.eachLine { line -> branch = line } proc.err.eachLine { line -> println line } proc.waitFor() branch } Refer to: Gradle & GIT : How to map your branch … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)