From 564eed2344e2b438a7480fbc0d31417e56d9b50e Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Thu, 1 Aug 2024 00:41:41 +0200 Subject: [PATCH] Fix test for CI --- .../test/kotlin/org/metaborg/repoman/GenerateCommandTests.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repoman/src/test/kotlin/org/metaborg/repoman/GenerateCommandTests.kt b/repoman/src/test/kotlin/org/metaborg/repoman/GenerateCommandTests.kt index 9cfe6c5..2632137 100644 --- a/repoman/src/test/kotlin/org/metaborg/repoman/GenerateCommandTests.kt +++ b/repoman/src/test/kotlin/org/metaborg/repoman/GenerateCommandTests.kt @@ -7,6 +7,7 @@ import io.kotest.core.spec.style.FunSpec import io.kotest.engine.spec.tempdir import io.kotest.matchers.file.shouldNotBeEmpty import io.kotest.matchers.shouldBe +import java.nio.file.Path /** Tests the [GenerateCommand]. */ class GenerateCommandTests: FunSpec({ @@ -95,7 +96,7 @@ class GenerateCommandTests: FunSpec({ gradleWrapper: generate: true update: true - gradleVersion: "latest" + gradleVersion: "8.9" # change this into `latest` when using Gradle 8 gradleDistributionType: "all" gradleRootProject: generate: true @@ -139,6 +140,7 @@ class GenerateCommandTests: FunSpec({ "generate", "--meta", metadataFile.toString(), "--repo", projectDir.toString(), + "--gradle-bin", Path.of(System.getProperty("user.dir")).resolve("../gradlew").toString(), "--force-update" ))