mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[gradle][test][IDEA-359161] disabled the test for the deprecated Gradle feature
GitOrigin-RevId: b3189ec783e7deb7a153d9e77f985376d94d09a7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7773091d81
commit
6c4b31c174
@@ -24,6 +24,7 @@ import org.jetbrains.plugins.gradle.importing.GradleImportingTestCase
|
||||
import org.jetbrains.plugins.gradle.importing.TestGradleBuildScriptBuilder
|
||||
import org.jetbrains.plugins.gradle.statistics.GradleTaskExecutionCollector
|
||||
import org.jetbrains.plugins.gradle.util.GradleConstants
|
||||
import org.junit.Ignore
|
||||
import org.junit.Test
|
||||
import org.junit.runners.Parameterized
|
||||
import java.util.concurrent.CompletableFuture
|
||||
@@ -71,6 +72,7 @@ class GradleTasksExecutionTest : GradleImportingTestCase() {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("IDEA-359161")
|
||||
fun `run task with specified build file test`() {
|
||||
createProjectSubFile("build.gradle", """
|
||||
task myTask() { doLast { print 'Hi!' } }
|
||||
|
||||
@@ -99,6 +99,7 @@ public class GradleExecutionHelper {
|
||||
projectDir = projectPathFile.getParent();
|
||||
if (settings != null) {
|
||||
List<String> arguments = settings.getArguments();
|
||||
// Setting the custom build file location is deprecated since Gradle 7.6, see IDEA-359161 for more details.
|
||||
if (!arguments.contains("-b") && !arguments.contains("--build-file")) {
|
||||
settings.withArguments("-b", projectPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user