gradle.properties 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. org.gradle.parallel=true
  2. org.gradle.caching=true
  3. org.gradle.priority=low
  4. # Gradle default is 256m which causes issues with our build - https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
  5. # Also workaround https://github.com/diffplug/spotless/issues/834
  6. org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m \
  7. --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
  8. --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
  9. --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
  10. --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED \
  11. --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
  12. --add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
  13. --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
  14. --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
  15. --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
  16. --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
  17. # Currently causes failure when importing project in IntelliJ
  18. # org.gradle.warning.mode=fail
  19. # To allow caching more tasks in buildSrc project
  20. # This property is not mentioned in Gradle documentation
  21. # See https://github.com/gradle/gradle/issues/15214 for background info
  22. systemProp.org.gradle.kotlin.dsl.precompiled.accessors.strict=true
  23. # Workaround https://youtrack.jetbrains.com/issue/KT-34862
  24. kotlin.incremental=false
  25. # Try to reduce CI failures due to maven central flakiness
  26. # in particular this has been a problem for maven-metadata.xml files, which are TTL'd quickly out of
  27. # the gradle cache since they contain the latest versions available in maven central
  28. systemProp.org.gradle.internal.http.connectionTimeout=120000
  29. systemProp.org.gradle.internal.http.socketTimeout=120000
  30. systemProp.org.gradle.internal.repository.max.retries=10
  31. systemProp.org.gradle.internal.repository.initial.backoff=500