try to fix java.io.NotSerializableException on org.gradle.process.internal.DefaultWorkerProcessFactory