From 9bdaa37b973be3c362196e7e9e15008607e8a595 Mon Sep 17 00:00:00 2001 From: Konstantin Tskhovrebov Date: Mon, 4 Mar 2024 14:43:58 +0100 Subject: [PATCH] [gradle] Downgrade gradle in tests to 8.3 because of issue on Windows It fails DesktopApplicationTest.proguard test on Windows: Execution failed for task ':createReleaseDistributable'. > java.io.IOException: Unable to delete directory 'C:\Users\runneradmin\AppData\Local\Temp\junit15199828818905379674\build\compose\binaries\main-release\app' Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory. - C:\Users\runneradmin\AppData\Local\Temp\junit15199828818905379674\build\compose\binaries\main-release\app\simple\simple.exe - C:\Users\runneradmin\AppData\Local\Temp\junit15199828818905379674\build\compose\binaries\main-release\app\simple More info: https://github.com/gradle/gradle/issues/26912 --- .github/workflows/gradle-plugin.yml | 2 +- gradle-plugins/gradle.properties | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle-plugin.yml b/.github/workflows/gradle-plugin.yml index 0ae4b006efd..3c3da35dfa1 100644 --- a/.github/workflows/gradle-plugin.yml +++ b/.github/workflows/gradle-plugin.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, macos-12, windows-2022] - gradle: [7.4, 8.6] + gradle: [7.4, 8.3] agp: [7.3.1, 8.2.2] runs-on: ${{ matrix.os }} steps: diff --git a/gradle-plugins/gradle.properties b/gradle-plugins/gradle.properties index 1888e453f3c..a3313c8196a 100644 --- a/gradle-plugins/gradle.properties +++ b/gradle-plugins/gradle.properties @@ -14,7 +14,12 @@ compose.tests.js.compiler.compatible.kotlin.version=1.9.22 # __SUPPORTED_GRADLE_VERSIONS__ # Don't forget to edit versions in .github/workflows/gradle-plugin.yml as well # minimal and current gradle version -compose.tests.gradle.versions=7.4, 8.6 +# +# !!! we can't update to the gradle upper than 8.3 because of on issue: +# https://github.com/gradle/gradle/issues/26912 +# It fails DesktopApplicationTest.proguard test on Windows +# Should be fixed in 8.7 +compose.tests.gradle.versions=7.4, 8.3 compose.tests.agp.versions=7.3.1, 8.2.2 # A version of Gradle plugin, that will be published,