Skip to content

Commit b2cea48

Browse files
committed
Modify the gradle.properties to specify the other JDK
Also a small change in Setup.kt
1 parent a0a642d commit b2cea48

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ javaVersion=21
1212
kotlin.stdlib.default.dependency=false
1313
org.gradle.parallel=true
1414
org.gradle.jvmargs=-Xms1024m -Xmx4048m
15+
16+
org.gradle.java.installations.auto-detect=false
17+
org.gradle.java.installations.dirs=/opt/jdk-21 # Replace with the actual path where JDK 21 is installed by the GitHub Actions runner

testSrc/integration/io/flutter/integrationTest/Setup.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import com.intellij.ide.starter.models.TestCase
1616
import com.intellij.ide.starter.path.GlobalPaths
1717
import com.intellij.ide.starter.plugins.PluginConfigurator
1818
import com.intellij.ide.starter.project.NoProject
19+
import com.intellij.ide.starter.project.ProjectInfoSpec
1920
import com.intellij.ide.starter.runner.Starter
2021
import com.intellij.ide.starter.utils.Git
2122
import com.intellij.openapi.util.SystemInfo
@@ -100,9 +101,9 @@ class Setup {
100101
*
101102
* @throws IllegalStateException if required system properties are not set
102103
*/
103-
fun setupTestContext(hyphenateWithClass: String, ideInfo: IdeInfo): IDETestContext {
104+
fun setupTestContext(hyphenateWithClass: String, ideInfo: IdeInfo, projectInfoSpec: ProjectInfoSpec = NoProject): IDETestContext {
104105

105-
val testCase = TestCase(ideInfo, NoProject)
106+
val testCase = TestCase(ideInfo, projectInfoSpec)
106107

107108
return Starter.newContext(testName = hyphenateWithClass, testCase = testCase).apply {
108109
// Install the plugin that was built by the buildPlugin task

0 commit comments

Comments
 (0)