Skip to content

Commit

Permalink
Fix ecosystem CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Nov 30, 2023
1 parent 6cd52fa commit f0e025e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

<kotlin.version>1.9.0</kotlin.version>
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
<commons-compress.version>1.21</commons-compress.version>
<hoverfly-java.version>0.14.3</hoverfly-java.version>
<assertj.version>3.24.2</assertj.version>
<commons-compress.version>1.25.0</commons-compress.version>

<git.commit.id>local</git.commit.id>
<!-- Quarkus platform used for the code.quarkus app-->
Expand All @@ -38,6 +38,7 @@
<quarkus.logging.sentry.version>1.2.1</quarkus.logging.sentry.version>
<quarkus.quinoa.version>2.0.5</quarkus.quinoa.version>
<segment-analytics.version>3.3.1</segment-analytics.version>

</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -124,6 +125,7 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${commons-compress.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.segment.analytics.java</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkus.code.service

import org.apache.commons.compress.archivers.ArchiveInputStream
import org.apache.commons.compress.archivers.ArchiveStreamFactory
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry
import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream
Expand Down Expand Up @@ -41,7 +42,8 @@ object QuarkusProjectServiceTestUtils {

fun unzip(outputDir: File, zipFile: File): List<String> {
zipFile.inputStream().use { zfis ->
ArchiveStreamFactory().createArchiveInputStream(ArchiveStreamFactory.ZIP, zfis).use { zip ->
val ais: ArchiveInputStream<ZipArchiveEntry> = ArchiveStreamFactory().createArchiveInputStream(ArchiveStreamFactory.ZIP, zfis)
ais.use { zip ->
var entry: ZipArchiveEntry?
val list = arrayListOf<String>()
do {
Expand All @@ -59,7 +61,7 @@ object QuarkusProjectServiceTestUtils {
file.outputStream().use { output ->
zip.copyTo(output)
}
if(EXECUTABLES.contains(file.name)) {
if (EXECUTABLES.contains(file.name)) {
file.setExecutable(true)
}
}
Expand Down

0 comments on commit f0e025e

Please sign in to comment.