diff --git a/CHANGELOG.md b/CHANGELOG.md index 01212d2..4d4c568 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Old GroupIds Alerter - Change Log +### 1.9.3 (WIP) +* delete temporary files created by the plugin. + ### 1.9.2 (2024/05/24) * strictly identical to 1.9.0. I had some problems with my Maven setup (again ^_^), which refused to publish the 1.9.0 plugin release. I was using Maven 3.9.6. I had to revert to 3.9.0 (and I updated my deployment script to use the Maven wrapper, finally), and I cleared my m2 cache (to fix a weird error about a missing class in a Maven plugin). After that, I have been able to prepare and publish the 1.9.2 release. diff --git a/src/main/java/biz/lermitage/oga/util/IOTools.kt b/src/main/java/biz/lermitage/oga/util/IOTools.kt index aa0e909..553bd17 100644 --- a/src/main/java/biz/lermitage/oga/util/IOTools.kt +++ b/src/main/java/biz/lermitage/oga/util/IOTools.kt @@ -44,6 +44,7 @@ object IOTools { private fun locationToFile(location: String, locator: ResourceManager, log: Log): File { try { val resolvedLocation = Files.createTempFile("oga-", ".json") + resolvedLocation.toFile().deleteOnExit() log.debug("Resolved file from '$location' to '$resolvedLocation'") return locator.getResourceAsFile(location, resolvedLocation.pathString) ?: throw MojoExecutionException("Could not resolve $location")