Use gradle file API to setup File properties. For some unknown reason this was causing a Stack overflow error only on Linux. It could be due to how paths are resolved but root cause is unclear.
Attaching stacktrace for discoverability in case any body else stumbles upon this.
* Exception is:
java.lang.StackOverflowError
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
at org.gradle.api.internal.provider.ValueSupplier$PlusProducer.visitProducerTasks(ValueSupplier.java:162)
Proposed Changes
Use gradle file API to setup File properties. For some unknown reason this was causing a Stack overflow error only on Linux. It could be due to how paths are resolved but root cause is unclear.
Attaching stacktrace for discoverability in case any body else stumbles upon this.