From c6ee88b8f9f188b88058e75bb1b50af9a09e014e Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Fri, 15 Dec 2023 00:41:53 -0500 Subject: [PATCH] [cleanup] Use files create temp file instead of plexus --- .../groovy/org/codehaus/mojo/spotbugs/ResourceHelper.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/org/codehaus/mojo/spotbugs/ResourceHelper.groovy b/src/main/groovy/org/codehaus/mojo/spotbugs/ResourceHelper.groovy index 6575c13a..de9ccdcb 100644 --- a/src/main/groovy/org/codehaus/mojo/spotbugs/ResourceHelper.groovy +++ b/src/main/groovy/org/codehaus/mojo/spotbugs/ResourceHelper.groovy @@ -15,11 +15,11 @@ */ package org.codehaus.mojo.spotbugs +import java.nio.file.Files import org.apache.maven.plugin.logging.Log import org.codehaus.plexus.resource.loader.FileResourceCreationException import org.codehaus.plexus.resource.loader.FileResourceLoader import org.codehaus.plexus.resource.ResourceManager -import org.codehaus.plexus.util.FileUtils final class ResourceHelper { @@ -96,7 +96,7 @@ final class ResourceHelper { File outputResourceFile if (outputPath == null) { - outputResourceFile = FileUtils.createTempFile("plexus-resources", "tmp", null) + outputResourceFile = Files.createTempFile("plexus-resources", "tmp") } else { if (outputDirectory != null) { outputResourceFile = new File(outputDirectory, outputPath)