Java memory issues (Gradle, Maven, Kotlin, Lein, Elasticsearch)