Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
java: [ '17' ]
scala: [ '2.13.15' ]
scala: [ '2.13.16' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lazy val scala2 = "2.13.15"
lazy val scala2 = "2.13.16"
lazy val scala3 = "3.4.2"
lazy val supportedScalaVersions = List(scala2, scala3)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import java.nio.file.Files
import java.util.zip.ZipEntry
import java.util.zip.ZipInputStream
import io.apibuilder.validation.util.UrlDownloader
import org.apache.commons.io.FileUtils
import org.apache.commons.io.FileDeleteStrategy

import scala.util.control.NonFatal

object ZipFileReader {

Expand Down Expand Up @@ -42,7 +44,8 @@ case class ZipFileReader(inputStream: InputStream) extends AutoCloseable {
private val destDir: File = Files.createTempDirectory("zipfilereader").toFile

override def close(): Unit = {
FileUtils.deleteQuietly(destDir)
try FileDeleteStrategy.FORCE.delete(destDir)
catch { case NonFatal(ex) => println(s"Error deleting zipfilereader folder '${ex.getMessage}', ignoring") }
}

/**
Expand Down