grab / grazel

A tool to migrate Android projects from Gradle to Bazel incrementally and automatically
https://grab.github.io/grazel/
Other
277 stars 19 forks source link

Use gradle files API instead of Java file API #118

Closed arunkumar9t2 closed 1 year ago

arunkumar9t2 commented 1 year ago

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.

* 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)