mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Gradle] fix tests failing because of :buildSrc:compileGroovy task warning about illegal access operations
GitOrigin-RevId: 2155dc583cac2baad50efd90f1158841d46bc51d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
eb3c2fa1dc
commit
5eeea18ee4
+7
-8
@@ -61,17 +61,16 @@ open class GradleOutputParsersMessagesImportingTest : BuildViewMessagesImporting
|
||||
|
||||
@Test
|
||||
fun `test build script plugins errors on Sync`() {
|
||||
createProjectSubFile("buildSrc/src/main/groovy/example/SomePlugin.groovy",
|
||||
"package example\n" +
|
||||
createProjectSubFile("buildSrc/src/main/java/example/SomePlugin.java",
|
||||
"package example;\n" +
|
||||
"\n" +
|
||||
"import org.gradle.api.Plugin\n" +
|
||||
"import org.gradle.api.Project\n" +
|
||||
"import org.gradle.api.Plugin;\n" +
|
||||
"import org.gradle.api.Project;\n" +
|
||||
"\n" +
|
||||
"class SomePlugin implements Plugin<Project> {\n" +
|
||||
" void apply(Project target) {\n" +
|
||||
" throw new IllegalArgumentException(\"Something's wrong!\")\n" +
|
||||
"public class SomePlugin implements Plugin<Project> {\n" +
|
||||
" public void apply(Project project) {\n" +
|
||||
" throw new IllegalArgumentException(\"Something's wrong!\");\n" +
|
||||
" }\n" +
|
||||
"\n" +
|
||||
"}\n")
|
||||
importProject("apply plugin: example.SomePlugin")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user