From the Gradle code, I found that there are methods: TemporaryFileProvider and TestNameTestDirectoryProvider for creating temporary files and folders, but they are not part of the public API.
org.gradle.api.internal.file.TemporaryFileProvider org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
If there are any methods from the public Gradle API that gives the user the ability to create temporary files and folders, and if not, what are the ways to do this?
PS. I am using org.junit.rules.TemporaryFolder for JUnit and Java File.createTempFile
file junit folder gradle temporary
Xelian
source share