Skip to content
Advertisement

Tag: gradle.properties

Gradle – Could not find load main class

I need to tune the JVM memory by help of Gradle. I’ve writen settings in the gradle.properties file: org.gradle.jvmargs=-XX:MaxMetaspaceSize=60M but it didn’t work. Then I’ve done it manually in an IDEA (Run>Edit Configurations…) and wrote the settings for the needed class (in VM options: field) and it works. Can we do the same by help of Gradle? I’ve tried to

Does gradle.properties have access to environment variables

I looked around and could not find any way of accessing environment variables in my gradle.properties. What I can do: In my build.gradle I can access environment variables like this System.getenv(“MY_VAR”). I would like to do the same in my gradle.properties. Example of what I want to do: In my gradle.properties replace build.foo=bar with build.foo=System.getenv(“BAR”) So far all my attempts

Advertisement