api / org.gradle.api.tasks.compile / GroovyCompileOptions / setStubDir

setStubDir

open fun setStubDir(stubDir: File): Unit

Sets the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint compilation. Defaults to null, in which case a temporary directory will be used.