diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/app-dependencies.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/app-dependencies.json deleted file mode 100644 index b7546734..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/app-dependencies.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "format": "litheDependencies", - "version": 0, - "dependencies": [ - { - "name": "compileClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - }, - { - "name": "runtimeClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - }, - { - "name": "testCompileClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - }, - { - "name": "testRuntimeClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - } - ] -} diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/dependencies.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/dependencies.json deleted file mode 100644 index 417dcd81..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/dependencies.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "format": "litheDependencies", - "version": 0, - "dependencies": [ - { - "name": "multi", - "properties": { - "kind": "project", - "path": ":" - }, - "children": [] - }, - { - "name": "app", - "properties": { - "kind": "project", - "path": ":app" - }, - "children": [ - { - "name": "compileClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - }, - { - "name": "runtimeClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - }, - { - "name": "testCompileClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - }, - { - "name": "testRuntimeClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [] - } - ] - } - ] - }, - { - "name": "core", - "properties": { - "kind": "project", - "path": ":core" - }, - "children": [ - { - "name": "testCompileClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "junit", - "group": "junit", - "version": "4.13.2", - "properties": {}, - "children": [ - { - "name": "hamcrest-core", - "group": "org.hamcrest", - "version": "1.3", - "properties": {}, - "children": [] - } - ] - } - ] - }, - { - "name": "testRuntimeClasspath", - "properties": { - "kind": "configuration" - }, - "children": [ - { - "name": "junit", - "group": "junit", - "version": "4.13.2", - "properties": {}, - "children": [ - { - "name": "hamcrest-core", - "group": "org.hamcrest", - "version": "1.3", - "properties": {}, - "children": [] - } - ] - } - ] - } - ] - } - ] -} diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/model.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/model.json deleted file mode 100644 index 912776f9..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/model.json +++ /dev/null @@ -1,1051 +0,0 @@ -{ - "format": "litheBuildModel", - "version": 0, - "projects": [ - { - "path": "${workspace}", - "name": "multi", - "properties": { - "path": ":", - "taskPrefix": ":", - "group": "demo", - "version": "1.0.0" - } - }, - { - "path": "${workspace}/app", - "name": "app", - "parent": "${workspace}", - "properties": { - "path": ":app", - "taskPrefix": ":app:", - "group": "demo", - "version": "1.0.0" - } - }, - { - "path": "${workspace}/core", - "name": "core", - "parent": "${workspace}", - "properties": { - "path": ":core", - "taskPrefix": ":core:", - "group": "demo", - "version": "1.0.0" - } - } - ], - "tasks": [ - { - "project": "${workspace}", - "name": "artifactTransforms", - "template": "gradle-task", - "description": "Displays the Artifact Transforms that can be executed in root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "artifactTransforms" - } - }, - { - "project": "${workspace}", - "name": "buildEnvironment", - "template": "gradle-task", - "description": "Displays all buildscript dependencies declared in root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "buildEnvironment" - } - }, - { - "project": "${workspace}", - "name": "dependencies", - "template": "gradle-task", - "description": "Displays all dependencies declared in root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "dependencies" - } - }, - { - "project": "${workspace}", - "name": "dependencyInsight", - "template": "gradle-task", - "description": "Displays the insight into a specific dependency in root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "dependencyInsight" - } - }, - { - "project": "${workspace}", - "name": "help", - "template": "gradle-task", - "description": "Displays a help message.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "help" - } - }, - { - "project": "${workspace}", - "name": "init", - "template": "gradle-task", - "description": "Initializes a new Gradle build.", - "category": [ - "Tasks", - "Build Setup" - ], - "properties": { - "path": "init" - } - }, - { - "project": "${workspace}", - "name": "javaToolchains", - "template": "gradle-task", - "description": "Displays the detected java toolchains.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "javaToolchains" - } - }, - { - "project": "${workspace}", - "name": "outgoingVariants", - "template": "gradle-task", - "description": "Displays the outgoing variants of root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "outgoingVariants" - } - }, - { - "project": "${workspace}", - "name": "prepareKotlinBuildScriptModel", - "template": "gradle-task", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": "prepareKotlinBuildScriptModel" - } - }, - { - "project": "${workspace}", - "name": "projects", - "template": "gradle-task", - "description": "Displays the sub-projects of root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "projects" - } - }, - { - "project": "${workspace}", - "name": "properties", - "template": "gradle-task", - "description": "Displays the properties of root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "properties" - } - }, - { - "project": "${workspace}", - "name": "resolvableConfigurations", - "template": "gradle-task", - "description": "Displays the configurations that can be resolved in root project 'multi'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "resolvableConfigurations" - } - }, - { - "project": "${workspace}", - "name": "tasks", - "template": "gradle-task", - "description": "Displays the tasks runnable from root project 'multi' (some of the displayed tasks may belong to subprojects).", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": "tasks" - } - }, - { - "project": "${workspace}", - "name": "updateDaemonJvm", - "template": "gradle-task", - "description": "Generates or updates the Gradle Daemon JVM criteria.", - "category": [ - "Tasks", - "Build Setup" - ], - "properties": { - "path": "updateDaemonJvm" - } - }, - { - "project": "${workspace}", - "name": "wrapper", - "template": "gradle-task", - "description": "Generates Gradle wrapper files.", - "category": [ - "Tasks", - "Build Setup" - ], - "properties": { - "path": "wrapper" - } - }, - { - "project": "${workspace}/app", - "name": "artifactTransforms", - "template": "gradle-task", - "description": "Displays the Artifact Transforms that can be executed in project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:artifactTransforms" - } - }, - { - "project": "${workspace}/app", - "name": "assemble", - "template": "gradle-task", - "description": "Assembles the outputs of this project.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:assemble" - } - }, - { - "project": "${workspace}/app", - "name": "assembleDist", - "template": "gradle-task", - "description": "Assembles the main distributions", - "category": [ - "Tasks", - "distribution" - ], - "properties": { - "path": ":app:assembleDist" - } - }, - { - "project": "${workspace}/app", - "name": "build", - "template": "gradle-task", - "description": "Assembles and tests this project.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:build" - } - }, - { - "project": "${workspace}/app", - "name": "buildDependents", - "template": "gradle-task", - "description": "Assembles and tests this project and all projects that depend on it.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:buildDependents" - } - }, - { - "project": "${workspace}/app", - "name": "buildEnvironment", - "template": "gradle-task", - "description": "Displays all buildscript dependencies declared in project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:buildEnvironment" - } - }, - { - "project": "${workspace}/app", - "name": "buildNeeded", - "template": "gradle-task", - "description": "Assembles and tests this project and all projects it depends on.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:buildNeeded" - } - }, - { - "project": "${workspace}/app", - "name": "check", - "template": "gradle-task", - "description": "Runs all checks.", - "category": [ - "Tasks", - "verification" - ], - "properties": { - "path": ":app:check" - } - }, - { - "project": "${workspace}/app", - "name": "classes", - "template": "gradle-task", - "description": "Assembles main classes.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:classes" - } - }, - { - "project": "${workspace}/app", - "name": "clean", - "template": "gradle-task", - "description": "Deletes the build directory.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:clean" - } - }, - { - "project": "${workspace}/app", - "name": "compileJava", - "template": "gradle-task", - "description": "Compiles main Java source.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":app:compileJava" - } - }, - { - "project": "${workspace}/app", - "name": "compileTestJava", - "template": "gradle-task", - "description": "Compiles test Java source.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":app:compileTestJava" - } - }, - { - "project": "${workspace}/app", - "name": "dependencies", - "template": "gradle-task", - "description": "Displays all dependencies declared in project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:dependencies" - } - }, - { - "project": "${workspace}/app", - "name": "dependencyInsight", - "template": "gradle-task", - "description": "Displays the insight into a specific dependency in project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:dependencyInsight" - } - }, - { - "project": "${workspace}/app", - "name": "distTar", - "template": "gradle-task", - "description": "Bundles the project as a distribution.", - "category": [ - "Tasks", - "distribution" - ], - "properties": { - "path": ":app:distTar" - } - }, - { - "project": "${workspace}/app", - "name": "distZip", - "template": "gradle-task", - "description": "Bundles the project as a distribution.", - "category": [ - "Tasks", - "distribution" - ], - "properties": { - "path": ":app:distZip" - } - }, - { - "project": "${workspace}/app", - "name": "help", - "template": "gradle-task", - "description": "Displays a help message.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:help" - } - }, - { - "project": "${workspace}/app", - "name": "installDist", - "template": "gradle-task", - "description": "Installs the project as a distribution as-is.", - "category": [ - "Tasks", - "distribution" - ], - "properties": { - "path": ":app:installDist" - } - }, - { - "project": "${workspace}/app", - "name": "jar", - "template": "gradle-task", - "description": "Assembles a jar archive containing the classes of the 'main' feature.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:jar" - } - }, - { - "project": "${workspace}/app", - "name": "javaToolchains", - "template": "gradle-task", - "description": "Displays the detected java toolchains.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:javaToolchains" - } - }, - { - "project": "${workspace}/app", - "name": "javadoc", - "template": "gradle-task", - "description": "Generates Javadoc API documentation for the 'main' feature.", - "category": [ - "Tasks", - "documentation" - ], - "properties": { - "path": ":app:javadoc" - } - }, - { - "project": "${workspace}/app", - "name": "outgoingVariants", - "template": "gradle-task", - "description": "Displays the outgoing variants of project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:outgoingVariants" - } - }, - { - "project": "${workspace}/app", - "name": "processResources", - "template": "gradle-task", - "description": "Processes main resources.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":app:processResources" - } - }, - { - "project": "${workspace}/app", - "name": "processTestResources", - "template": "gradle-task", - "description": "Processes test resources.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":app:processTestResources" - } - }, - { - "project": "${workspace}/app", - "name": "projects", - "template": "gradle-task", - "description": "Displays the sub-projects of project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:projects" - } - }, - { - "project": "${workspace}/app", - "name": "properties", - "template": "gradle-task", - "description": "Displays the properties of project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:properties" - } - }, - { - "project": "${workspace}/app", - "name": "resolvableConfigurations", - "template": "gradle-task", - "description": "Displays the configurations that can be resolved in project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:resolvableConfigurations" - } - }, - { - "project": "${workspace}/app", - "name": "run", - "template": "gradle-task", - "description": "Runs this project as a JVM application", - "category": [ - "Tasks", - "application" - ], - "execution": "application", - "properties": { - "path": ":app:run" - } - }, - { - "project": "${workspace}/app", - "name": "startScripts", - "template": "gradle-task", - "description": "Creates OS specific scripts to run the project as a JVM application.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":app:startScripts" - } - }, - { - "project": "${workspace}/app", - "name": "tasks", - "template": "gradle-task", - "description": "Displays the tasks runnable from project ':app'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":app:tasks" - } - }, - { - "project": "${workspace}/app", - "name": "test", - "template": "gradle-task", - "description": "Runs the test suite.", - "category": [ - "Tasks", - "verification" - ], - "properties": { - "path": ":app:test" - } - }, - { - "project": "${workspace}/app", - "name": "testClasses", - "template": "gradle-task", - "description": "Assembles test classes.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":app:testClasses" - } - }, - { - "project": "${workspace}/core", - "name": "artifactTransforms", - "template": "gradle-task", - "description": "Displays the Artifact Transforms that can be executed in project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:artifactTransforms" - } - }, - { - "project": "${workspace}/core", - "name": "assemble", - "template": "gradle-task", - "description": "Assembles the outputs of this project.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:assemble" - } - }, - { - "project": "${workspace}/core", - "name": "build", - "template": "gradle-task", - "description": "Assembles and tests this project.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:build" - } - }, - { - "project": "${workspace}/core", - "name": "buildDependents", - "template": "gradle-task", - "description": "Assembles and tests this project and all projects that depend on it.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:buildDependents" - } - }, - { - "project": "${workspace}/core", - "name": "buildEnvironment", - "template": "gradle-task", - "description": "Displays all buildscript dependencies declared in project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:buildEnvironment" - } - }, - { - "project": "${workspace}/core", - "name": "buildNeeded", - "template": "gradle-task", - "description": "Assembles and tests this project and all projects it depends on.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:buildNeeded" - } - }, - { - "project": "${workspace}/core", - "name": "check", - "template": "gradle-task", - "description": "Runs all checks.", - "category": [ - "Tasks", - "verification" - ], - "properties": { - "path": ":core:check" - } - }, - { - "project": "${workspace}/core", - "name": "classes", - "template": "gradle-task", - "description": "Assembles main classes.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:classes" - } - }, - { - "project": "${workspace}/core", - "name": "clean", - "template": "gradle-task", - "description": "Deletes the build directory.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:clean" - } - }, - { - "project": "${workspace}/core", - "name": "compileJava", - "template": "gradle-task", - "description": "Compiles main Java source.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":core:compileJava" - } - }, - { - "project": "${workspace}/core", - "name": "compileTestJava", - "template": "gradle-task", - "description": "Compiles test Java source.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":core:compileTestJava" - } - }, - { - "project": "${workspace}/core", - "name": "dependencies", - "template": "gradle-task", - "description": "Displays all dependencies declared in project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:dependencies" - } - }, - { - "project": "${workspace}/core", - "name": "dependencyInsight", - "template": "gradle-task", - "description": "Displays the insight into a specific dependency in project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:dependencyInsight" - } - }, - { - "project": "${workspace}/core", - "name": "help", - "template": "gradle-task", - "description": "Displays a help message.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:help" - } - }, - { - "project": "${workspace}/core", - "name": "jar", - "template": "gradle-task", - "description": "Assembles a jar archive containing the classes of the 'main' feature.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:jar" - } - }, - { - "project": "${workspace}/core", - "name": "javaToolchains", - "template": "gradle-task", - "description": "Displays the detected java toolchains.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:javaToolchains" - } - }, - { - "project": "${workspace}/core", - "name": "javadoc", - "template": "gradle-task", - "description": "Generates Javadoc API documentation for the 'main' feature.", - "category": [ - "Tasks", - "documentation" - ], - "properties": { - "path": ":core:javadoc" - } - }, - { - "project": "${workspace}/core", - "name": "outgoingVariants", - "template": "gradle-task", - "description": "Displays the outgoing variants of project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:outgoingVariants" - } - }, - { - "project": "${workspace}/core", - "name": "processResources", - "template": "gradle-task", - "description": "Processes main resources.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":core:processResources" - } - }, - { - "project": "${workspace}/core", - "name": "processTestResources", - "template": "gradle-task", - "description": "Processes test resources.", - "category": [ - "Tasks", - "other" - ], - "properties": { - "path": ":core:processTestResources" - } - }, - { - "project": "${workspace}/core", - "name": "projects", - "template": "gradle-task", - "description": "Displays the sub-projects of project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:projects" - } - }, - { - "project": "${workspace}/core", - "name": "properties", - "template": "gradle-task", - "description": "Displays the properties of project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:properties" - } - }, - { - "project": "${workspace}/core", - "name": "resolvableConfigurations", - "template": "gradle-task", - "description": "Displays the configurations that can be resolved in project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:resolvableConfigurations" - } - }, - { - "project": "${workspace}/core", - "name": "tasks", - "template": "gradle-task", - "description": "Displays the tasks runnable from project ':core'.", - "category": [ - "Tasks", - "help" - ], - "properties": { - "path": ":core:tasks" - } - }, - { - "project": "${workspace}/core", - "name": "test", - "template": "gradle-task", - "description": "Runs the test suite.", - "category": [ - "Tasks", - "verification" - ], - "properties": { - "path": ":core:test" - } - }, - { - "project": "${workspace}/core", - "name": "testClasses", - "template": "gradle-task", - "description": "Assembles test classes.", - "category": [ - "Tasks", - "build" - ], - "properties": { - "path": ":core:testClasses" - } - } - ], - "contentRoots": [ - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/main/java", - "kind": "source" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/main/resources", - "kind": "resource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/build/generated/sources/annotationProcessor/java/main", - "kind": "generatedSource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/test/java", - "kind": "testSource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/test/resources", - "kind": "testResource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/build/generated/sources/annotationProcessor/java/test", - "kind": "generatedTestSource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/main/java", - "kind": "source" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/main/resources", - "kind": "resource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/build/generated/sources/annotationProcessor/java/main", - "kind": "generatedSource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/test/java", - "kind": "testSource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/test/resources", - "kind": "testResource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/build/generated/sources/annotationProcessor/java/test", - "kind": "generatedTestSource" - } - ] -} diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/plugin.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/plugin.json deleted file mode 100644 index f4e07a8c..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/gradle/plugin.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "schemaVersion": 0, - "id": "io.github.lithe-idea.gradle-build", - "displayName": "Gradle", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { "buildSystems": 0 }, - "vendor": { - "id": "io.github.lithe-idea", - "displayName": "Lithe Community", - "signatureRequirement": "none" - }, - "permissions": ["process.build"], - "activationEvents": ["onBuildSystem:gradle"], - "languages": [], - "buildSystems": [ - { - "id": "gradle", - "displayName": "Gradle", - "icon": { "path": "icons/gradle.svg" }, - "detection": { - "markers": ["build.gradle", "build.gradle.kts", "settings.gradle", "settings.gradle.kts"], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "projectFile", - "path": "gradlew", - "requires": ["gradle/wrapper/gradle-wrapper.properties"], - "platforms": ["macos", "linux"] - }, - { - "kind": "projectFile", - "path": "gradlew.bat", - "requires": ["gradle/wrapper/gradle-wrapper.properties"], - "platforms": ["windows"] - }, - { "kind": "environment", "variable": "GRADLE_HOME", "path": "bin/gradle", "platforms": ["macos", "linux"] }, - { "kind": "environment", "variable": "GRADLE_HOME", "path": "bin/gradle.bat", "platforms": ["windows"] }, - { "kind": "command", "command": "gradle" } - ], - "environmentInputs": ["GRADLE_HOME"], - "runtimeDependencies": [{ "id": "java", "minimumVersion": "8" }], - "globalArguments": ["--console=plain", "${optionArguments}"], - "version": { "arguments": ["--version"], "pattern": "Gradle (\\d+(?:\\.\\d+){1,2})" }, - "minimumVersion": "7.6" - }, - "options": [ - { - "id": "offline", - "displayName": "Offline", - "kind": "boolean", - "presentation": "toolbar", - "icon": { "path": "icons/offline.svg" }, - "arguments": ["--offline"] - }, - { - "id": "gradleUserHome", - "displayName": "Gradle User Home", - "kind": "directory", - "arguments": ["--gradle-user-home", "${value}"] - } - ], - "model": { - "source": "command", - "arguments": [ - "-q", - "--no-configuration-cache", - "--no-configure-on-demand", - "--init-script", - "${pluginDir}/lithe.init.gradle", - "-PlitheModelOutput=${outputFile}", - "litheModel" - ], - "output": "outputFile", - "decoder": "litheBuildModel", - "executesProjectCode": true, - "mayUseNetwork": true - }, - "tasks": [ - { - "id": "gradle-task", - "displayName": "Gradle Task", - "group": "other", - "category": ["Tasks", "other"], - "fromModel": true, - "arguments": ["${task.property:path}"] - }, - { - "id": "tasks", - "displayName": "Run Gradle Tasks…", - "group": "other", - "scopes": ["workspace", "project"], - "requiresUserArguments": true, - "arguments": [ - { "value": "--project-dir", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${userArguments}" - ] - } - ], - "run": [ - { - "id": "task", - "fromTasks": { "templates": ["gradle-task"], "executions": ["application"] }, - "workingDirectory": "root" - } - ], - "test": { - "scopes": ["workspace", "project"], - "filters": ["suite", "case"], - "arguments": [ - { "value": "${project.property:taskPrefix}test", "when": "nestedProjectSelected" }, - { "value": "test", "when": "noNestedProjectSelected" }, - { "value": "--tests", "when": "suiteSelected" }, - { "value": "${test.suite}", "when": ["suiteSelected", "noCaseSelected"] }, - { "value": "${test.suite}.${test.case}", "when": ["suiteSelected", "caseSelected"] } - ], - "results": { "decoder": "junitXml", "reports": ["build/test-results/test/TEST-*.xml"] } - }, - "diagnostics": { - "decoder": "lineMatcher", - "patterns": [ - { - "regex": "^(.+\\.java):(\\d+): (error|warning): (.+)$", - "file": 1, - "line": 2, - "severity": 3, - "message": 4 - }, - { - "regex": "^([ew]): file://(.+?\\.kts?):(\\d+):(\\d+) (.+)$", - "file": 2, - "line": 3, - "column": 4, - "message": 5, - "severity": 1, - "severities": { "e": "error", "w": "warning" } - } - ] - }, - "dependencies": { - "source": "command", - "scopes": ["workspace", "project"], - "arguments": [ - "-q", - "--no-configuration-cache", - "--no-configure-on-demand", - "--init-script", - "${pluginDir}/lithe.init.gradle", - "-PlitheDependenciesOutput=${outputFile}", - { "value": "-PlitheDependenciesProject=${project.property:path}", "when": "projectSelected" }, - "litheDependencyReport" - ], - "output": "outputFile", - "decoder": "litheDependencies", - "executesProjectCode": true, - "mayUseNetwork": true - }, - "sync": { - "watch": [ - "build.gradle", - "build.gradle.kts", - "gradle.properties", - "gradle/libs.versions.toml", - "gradle/wrapper/gradle-wrapper.properties", - "settings.gradle", - "settings.gradle.kts" - ] - }, - "layout": { "excluded": [".gradle", "build"] } - } - ] -} diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/app-dependencies.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/app-dependencies.json deleted file mode 100644 index e63ee241..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/app-dependencies.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "format": "litheDependencies", - "version": 0, - "dependencies": [ - { - "name": "core", - "group": "demo", - "version": "1.0.0-SNAPSHOT", - "scope": "compile", - "properties": { - "type": "jar" - }, - "children": [] - } - ] -} diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/dependencies.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/dependencies.json deleted file mode 100644 index 167fb578..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/dependencies.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "format": "litheDependencies", - "version": 0, - "dependencies": [ - { - "name": "reactor", - "group": "demo", - "version": "1.0.0-SNAPSHOT", - "properties": { - "kind": "project", - "packaging": "pom" - }, - "children": [] - }, - { - "name": "core", - "group": "demo", - "version": "1.0.0-SNAPSHOT", - "properties": { - "kind": "project", - "packaging": "jar" - }, - "children": [ - { - "name": "junit", - "group": "junit", - "version": "4.13.2", - "scope": "test", - "properties": { - "type": "jar" - }, - "children": [ - { - "name": "hamcrest-core", - "group": "org.hamcrest", - "version": "1.3", - "scope": "test", - "properties": { - "type": "jar" - }, - "children": [] - } - ] - } - ] - }, - { - "name": "app", - "group": "demo", - "version": "1.0.0-SNAPSHOT", - "properties": { - "kind": "project", - "packaging": "jar" - }, - "children": [ - { - "name": "core", - "group": "demo", - "version": "1.0.0-SNAPSHOT", - "scope": "compile", - "properties": { - "type": "jar" - }, - "children": [] - } - ] - } - ] -} diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/model.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/model.json deleted file mode 100644 index cd9b2bc3..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/model.json +++ /dev/null @@ -1,1123 +0,0 @@ -{ - "format": "litheBuildModel", - "version": 0, - "projects": [ - { - "path": "${workspace}", - "name": "reactor", - "displayName": "Demo Reactor", - "properties": { - "groupId": "demo", - "artifactId": "reactor", - "version": "1.0.0-SNAPSHOT", - "packaging": "pom" - } - }, - { - "path": "${workspace}/core", - "name": "core", - "parent": "${workspace}", - "properties": { - "groupId": "demo", - "artifactId": "core", - "version": "1.0.0-SNAPSHOT", - "packaging": "jar" - } - }, - { - "path": "${workspace}/app", - "name": "app", - "parent": "${workspace}", - "properties": { - "groupId": "demo", - "artifactId": "app", - "version": "1.0.0-SNAPSHOT", - "packaging": "jar" - } - } - ], - "tasks": [ - { - "project": "${workspace}", - "name": "clean:clean", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-clean-plugin:3.5.0", - "category": [ - "Plugins", - "clean" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-clean-plugin:3.5.0:clean" - } - }, - { - "project": "${workspace}", - "name": "clean:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-clean-plugin:3.5.0", - "category": [ - "Plugins", - "clean" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-clean-plugin:3.5.0:help" - } - }, - { - "project": "${workspace}", - "name": "install:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:help" - } - }, - { - "project": "${workspace}", - "name": "install:install", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:install" - } - }, - { - "project": "${workspace}", - "name": "install:install-file", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:install-file" - } - }, - { - "project": "${workspace}", - "name": "deploy:deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:deploy" - } - }, - { - "project": "${workspace}", - "name": "deploy:deploy-file", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:deploy-file" - } - }, - { - "project": "${workspace}", - "name": "deploy:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:help" - } - }, - { - "project": "${workspace}", - "name": "site:attach-descriptor", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:attach-descriptor" - } - }, - { - "project": "${workspace}", - "name": "site:auto-refresh", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:auto-refresh" - } - }, - { - "project": "${workspace}", - "name": "site:deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:deploy" - } - }, - { - "project": "${workspace}", - "name": "site:effective-site", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:effective-site" - } - }, - { - "project": "${workspace}", - "name": "site:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:help" - } - }, - { - "project": "${workspace}", - "name": "site:jar", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:jar" - } - }, - { - "project": "${workspace}", - "name": "site:run", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:run" - } - }, - { - "project": "${workspace}", - "name": "site:site", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:site" - } - }, - { - "project": "${workspace}", - "name": "site:stage", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:stage" - } - }, - { - "project": "${workspace}", - "name": "site:stage-deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:stage-deploy" - } - }, - { - "project": "${workspace}/core", - "name": "clean:clean", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-clean-plugin:3.5.0", - "category": [ - "Plugins", - "clean" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-clean-plugin:3.5.0:clean" - } - }, - { - "project": "${workspace}/core", - "name": "clean:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-clean-plugin:3.5.0", - "category": [ - "Plugins", - "clean" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-clean-plugin:3.5.0:help" - } - }, - { - "project": "${workspace}/core", - "name": "resources:copy-resources", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:copy-resources" - } - }, - { - "project": "${workspace}/core", - "name": "resources:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:help" - } - }, - { - "project": "${workspace}/core", - "name": "resources:resources", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:resources" - } - }, - { - "project": "${workspace}/core", - "name": "resources:testResources", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:testResources" - } - }, - { - "project": "${workspace}/core", - "name": "jar:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-jar-plugin:3.5.1", - "category": [ - "Plugins", - "jar" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-jar-plugin:3.5.1:help" - } - }, - { - "project": "${workspace}/core", - "name": "jar:jar", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-jar-plugin:3.5.1", - "category": [ - "Plugins", - "jar" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-jar-plugin:3.5.1:jar" - } - }, - { - "project": "${workspace}/core", - "name": "jar:test-jar", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-jar-plugin:3.5.1", - "category": [ - "Plugins", - "jar" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-jar-plugin:3.5.1:test-jar" - } - }, - { - "project": "${workspace}/core", - "name": "compiler:compile", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0", - "category": [ - "Plugins", - "compiler" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile" - } - }, - { - "project": "${workspace}/core", - "name": "compiler:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0", - "category": [ - "Plugins", - "compiler" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0:help" - } - }, - { - "project": "${workspace}/core", - "name": "compiler:testCompile", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0", - "category": [ - "Plugins", - "compiler" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile" - } - }, - { - "project": "${workspace}/core", - "name": "surefire:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2", - "category": [ - "Plugins", - "surefire" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2:help" - } - }, - { - "project": "${workspace}/core", - "name": "surefire:test", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2", - "category": [ - "Plugins", - "surefire" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test" - } - }, - { - "project": "${workspace}/core", - "name": "install:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:help" - } - }, - { - "project": "${workspace}/core", - "name": "install:install", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:install" - } - }, - { - "project": "${workspace}/core", - "name": "install:install-file", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:install-file" - } - }, - { - "project": "${workspace}/core", - "name": "deploy:deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:deploy" - } - }, - { - "project": "${workspace}/core", - "name": "deploy:deploy-file", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:deploy-file" - } - }, - { - "project": "${workspace}/core", - "name": "deploy:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:help" - } - }, - { - "project": "${workspace}/core", - "name": "site:attach-descriptor", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:attach-descriptor" - } - }, - { - "project": "${workspace}/core", - "name": "site:auto-refresh", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:auto-refresh" - } - }, - { - "project": "${workspace}/core", - "name": "site:deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:deploy" - } - }, - { - "project": "${workspace}/core", - "name": "site:effective-site", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:effective-site" - } - }, - { - "project": "${workspace}/core", - "name": "site:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:help" - } - }, - { - "project": "${workspace}/core", - "name": "site:jar", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:jar" - } - }, - { - "project": "${workspace}/core", - "name": "site:run", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:run" - } - }, - { - "project": "${workspace}/core", - "name": "site:site", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:site" - } - }, - { - "project": "${workspace}/core", - "name": "site:stage", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:stage" - } - }, - { - "project": "${workspace}/core", - "name": "site:stage-deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:stage-deploy" - } - }, - { - "project": "${workspace}/app", - "name": "clean:clean", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-clean-plugin:3.5.0", - "category": [ - "Plugins", - "clean" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-clean-plugin:3.5.0:clean" - } - }, - { - "project": "${workspace}/app", - "name": "clean:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-clean-plugin:3.5.0", - "category": [ - "Plugins", - "clean" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-clean-plugin:3.5.0:help" - } - }, - { - "project": "${workspace}/app", - "name": "resources:copy-resources", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:copy-resources" - } - }, - { - "project": "${workspace}/app", - "name": "resources:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:help" - } - }, - { - "project": "${workspace}/app", - "name": "resources:resources", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:resources" - } - }, - { - "project": "${workspace}/app", - "name": "resources:testResources", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-resources-plugin:3.5.0", - "category": [ - "Plugins", - "resources" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-resources-plugin:3.5.0:testResources" - } - }, - { - "project": "${workspace}/app", - "name": "jar:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-jar-plugin:3.5.1", - "category": [ - "Plugins", - "jar" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-jar-plugin:3.5.1:help" - } - }, - { - "project": "${workspace}/app", - "name": "jar:jar", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-jar-plugin:3.5.1", - "category": [ - "Plugins", - "jar" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-jar-plugin:3.5.1:jar" - } - }, - { - "project": "${workspace}/app", - "name": "jar:test-jar", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-jar-plugin:3.5.1", - "category": [ - "Plugins", - "jar" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-jar-plugin:3.5.1:test-jar" - } - }, - { - "project": "${workspace}/app", - "name": "compiler:compile", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0", - "category": [ - "Plugins", - "compiler" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile" - } - }, - { - "project": "${workspace}/app", - "name": "compiler:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0", - "category": [ - "Plugins", - "compiler" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0:help" - } - }, - { - "project": "${workspace}/app", - "name": "compiler:testCompile", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0", - "category": [ - "Plugins", - "compiler" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile" - } - }, - { - "project": "${workspace}/app", - "name": "surefire:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2", - "category": [ - "Plugins", - "surefire" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2:help" - } - }, - { - "project": "${workspace}/app", - "name": "surefire:test", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2", - "category": [ - "Plugins", - "surefire" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test" - } - }, - { - "project": "${workspace}/app", - "name": "install:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:help" - } - }, - { - "project": "${workspace}/app", - "name": "install:install", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:install" - } - }, - { - "project": "${workspace}/app", - "name": "install:install-file", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-install-plugin:3.2.0", - "category": [ - "Plugins", - "install" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-install-plugin:3.2.0:install-file" - } - }, - { - "project": "${workspace}/app", - "name": "deploy:deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:deploy" - } - }, - { - "project": "${workspace}/app", - "name": "deploy:deploy-file", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:deploy-file" - } - }, - { - "project": "${workspace}/app", - "name": "deploy:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0", - "category": [ - "Plugins", - "deploy" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-deploy-plugin:3.2.0:help" - } - }, - { - "project": "${workspace}/app", - "name": "site:attach-descriptor", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:attach-descriptor" - } - }, - { - "project": "${workspace}/app", - "name": "site:auto-refresh", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:auto-refresh" - } - }, - { - "project": "${workspace}/app", - "name": "site:deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:deploy" - } - }, - { - "project": "${workspace}/app", - "name": "site:effective-site", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:effective-site" - } - }, - { - "project": "${workspace}/app", - "name": "site:help", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:help" - } - }, - { - "project": "${workspace}/app", - "name": "site:jar", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:jar" - } - }, - { - "project": "${workspace}/app", - "name": "site:run", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:run" - } - }, - { - "project": "${workspace}/app", - "name": "site:site", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:site" - } - }, - { - "project": "${workspace}/app", - "name": "site:stage", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:stage" - } - }, - { - "project": "${workspace}/app", - "name": "site:stage-deploy", - "template": "plugin-goal", - "description": "org.apache.maven.plugins:maven-site-plugin:3.22.0", - "category": [ - "Plugins", - "site" - ], - "properties": { - "goal": "org.apache.maven.plugins:maven-site-plugin:3.22.0:stage-deploy" - } - } - ], - "contentRoots": [ - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/main/java", - "kind": "source" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/main/resources", - "kind": "resource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/test/java", - "kind": "testSource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/src/test/resources", - "kind": "testResource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/target/generated-sources/annotations", - "kind": "generatedSource" - }, - { - "project": "${workspace}/core", - "path": "${workspace}/core/target/generated-test-sources/test-annotations", - "kind": "generatedTestSource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/main/java", - "kind": "source" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/main/resources", - "kind": "resource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/test/java", - "kind": "testSource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/src/test/resources", - "kind": "testResource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/target/generated-sources/annotations", - "kind": "generatedSource" - }, - { - "project": "${workspace}/app", - "path": "${workspace}/app/target/generated-test-sources/test-annotations", - "kind": "generatedTestSource" - } - ], - "optionValues": { - "profiles": [ - "ci", - "release" - ] - } -} diff --git a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/plugin.json b/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/plugin.json deleted file mode 100644 index 8d391675..00000000 --- a/rust/crates/core/src/tests/fixtures/published_build_plugins/maven/plugin.json +++ /dev/null @@ -1,301 +0,0 @@ -{ - "schemaVersion": 0, - "id": "io.github.lithe-idea.maven-build", - "displayName": "Maven", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { "buildSystems": 0 }, - "vendor": { - "id": "io.github.lithe-idea", - "displayName": "Lithe Community", - "signatureRequirement": "none" - }, - "permissions": ["process.build"], - "activationEvents": ["onBuildSystem:maven"], - "languages": [], - "buildSystems": [ - { - "id": "maven", - "displayName": "Maven", - "icon": { "path": "icons/maven.svg" }, - "detection": { - "markers": ["pom.xml"], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "projectFile", - "path": "mvnw", - "requires": [".mvn/wrapper/maven-wrapper.properties"], - "platforms": ["macos", "linux"] - }, - { - "kind": "projectFile", - "path": "mvnw.cmd", - "requires": [".mvn/wrapper/maven-wrapper.properties"], - "platforms": ["windows"] - }, - { "kind": "environment", "variable": "MAVEN_HOME", "path": "bin/mvn", "platforms": ["macos", "linux"] }, - { "kind": "environment", "variable": "MAVEN_HOME", "path": "bin/mvn.cmd", "platforms": ["windows"] }, - { "kind": "command", "command": "mvn" } - ], - "environmentInputs": ["MAVEN_HOME"], - "runtimeDependencies": [{ "id": "java", "minimumVersion": "8" }], - "globalArguments": [ - "-B", - "-ntp", - "${optionArguments:profiles}", - "${optionArguments:settingsFile}", - "${optionArguments:localRepository}", - "${optionArguments:offline}" - ], - "version": { "arguments": ["--version"], "pattern": "Apache Maven (\\d+\\.\\d+\\.\\d+)" }, - "minimumVersion": "3.6.3" - }, - "options": [ - { - "id": "profiles", - "displayName": "Profiles", - "kind": "multiSelect", - "choicesFromModel": true, - "allowCustom": true, - "presentation": "tree", - "arguments": ["-P", "${value}"] - }, - { "id": "settingsFile", "displayName": "Settings File", "kind": "file", "arguments": ["-s", "${value}"] }, - { - "id": "localRepository", - "displayName": "Local Repository", - "kind": "directory", - "arguments": ["-Dmaven.repo.local=${value}"] - }, - { - "id": "offline", - "displayName": "Offline", - "kind": "boolean", - "presentation": "toolbar", - "icon": { "path": "icons/offline.svg" }, - "arguments": ["-o"] - }, - { - "id": "skipTests", - "displayName": "Skip Tests", - "kind": "boolean", - "presentation": "toolbar", - "icon": { "path": "icons/skipTests.svg" }, - "arguments": ["-DskipTests"] - } - ], - "model": { - "source": "command", - "arguments": [ - "-Dmaven.ext.class.path=${pluginDir}/lib/lithe-maven-extension.jar", - "-Dlithe.modelOutput=${outputFile}", - "pre-clean" - ], - "output": "outputFile", - "decoder": "litheBuildModel", - "executesProjectCode": true, - "mayUseNetwork": true - }, - "tasks": [ - { - "id": "clean", - "displayName": "clean", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "clean" - ] - }, - { - "id": "validate", - "displayName": "validate", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "validate" - ] - }, - { - "id": "compile", - "displayName": "compile", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "compile" - ] - }, - { - "id": "test", - "displayName": "test", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${optionArguments:skipTests}", - "test" - ] - }, - { - "id": "package", - "displayName": "package", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${optionArguments:skipTests}", - "package" - ] - }, - { - "id": "verify", - "displayName": "verify", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${optionArguments:skipTests}", - "verify" - ] - }, - { - "id": "install", - "displayName": "install", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${optionArguments:skipTests}", - "install" - ] - }, - { - "id": "site", - "displayName": "site", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "site" - ] - }, - { - "id": "deploy", - "displayName": "deploy", - "group": "lifecycle", - "category": ["Lifecycle"], - "scopes": ["workspace", "project"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${optionArguments:skipTests}", - "deploy" - ] - }, - { - "id": "plugin-goal", - "displayName": "Plugin Goal", - "group": "build", - "category": ["Plugins"], - "fromModel": true, - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${optionArguments:skipTests}", - "${task.property:goal}" - ] - }, - { - "id": "goal", - "displayName": "Run Maven Goal…", - "group": "other", - "scopes": ["workspace", "project"], - "requiresUserArguments": true, - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - "${optionArguments:skipTests}", - "${userArguments}" - ] - } - ], - "test": { - "scopes": ["workspace", "project"], - "filters": ["suite", "case"], - "arguments": [ - { "value": "-pl", "when": "nestedProjectSelected" }, - { "value": "${project.path}", "when": "nestedProjectSelected" }, - { "value": "-am", "when": ["nestedProjectSelected", "suiteSelected"] }, - { "value": "-Dtest=${test.suite}", "when": ["suiteSelected", "noCaseSelected"] }, - { "value": "-Dtest=${test.suite}#${test.case}", "when": ["suiteSelected", "caseSelected"] }, - { "value": "-Dsurefire.failIfNoSpecifiedTests=false", "when": "suiteSelected" }, - "test" - ], - "results": { - "decoder": "junitXml", - "reports": ["target/surefire-reports/TEST-*.xml", "target/failsafe-reports/TEST-*.xml"] - } - }, - "diagnostics": { - "decoder": "lineMatcher", - "patterns": [ - { - "regex": "^\\[(ERROR|WARNING)\\] (.+?\\.(?:java|kt|groovy|scala)):\\[(\\d+),(\\d+)\\] (.+)$", - "file": 2, - "line": 3, - "column": 4, - "message": 5, - "severity": 1, - "severities": { "ERROR": "error", "WARNING": "warning" } - }, - { - "regex": "^\\[(ERROR|WARNING)\\] file://(.+?\\.kts?):(\\d+):(\\d+) (.+)$", - "file": 2, - "line": 3, - "column": 4, - "message": 5, - "severity": 1, - "severities": { "ERROR": "error", "WARNING": "warning" } - } - ] - }, - "dependencies": { - "source": "command", - "scopes": ["workspace", "project"], - "arguments": [ - "-Dmaven.ext.class.path=${pluginDir}/lib/lithe-maven-extension.jar", - "-Dlithe.dependenciesOutput=${outputFile}", - { "value": "-Dlithe.dependenciesProject=${project.path}", "when": "projectSelected" }, - "pre-clean" - ], - "output": "outputFile", - "decoder": "litheDependencies", - "executesProjectCode": true, - "mayUseNetwork": true - }, - "sync": { "watch": [".mvn/extensions.xml", ".mvn/maven.config", "pom.xml"] }, - "layout": { "excluded": ["target"] } - } - ] -} diff --git a/rust/crates/core/src/tests/mod.rs b/rust/crates/core/src/tests/mod.rs index 2bc0e169..5b620f42 100644 --- a/rust/crates/core/src/tests/mod.rs +++ b/rust/crates/core/src/tests/mod.rs @@ -62,7 +62,6 @@ mod project; mod project_generators; mod project_tree; mod protocol; -mod published_build_plugins; mod rank_names; #[cfg(unix)] mod remote_attach; @@ -73,6 +72,7 @@ mod row_selection; mod run_configuration; mod run_configuration_arrangement; pub(crate) mod support; +mod synthetic_build_plugins; mod toolchain_definitions; mod toolchain_pins; mod toolchain_queries; diff --git a/rust/crates/core/src/tests/published_build_plugins.rs b/rust/crates/core/src/tests/published_build_plugins.rs deleted file mode 100644 index ffa0d679..00000000 --- a/rust/crates/core/src/tests/published_build_plugins.rs +++ /dev/null @@ -1,738 +0,0 @@ -//! The published Maven and Gradle build plugins, checked against what real -//! Maven and Gradle wrote for them. -//! -//! `fixtures/published_build_plugins/` holds each plugin's `plugin.json` and -//! the documents its own integration test captured from a real build: -//! -//! - Maven: `github.com/Lithe-IDEA/lithe-plugin-maven`, `plugin.json` at -//! 944552c, documents captured at ef40103 with Maven 3.10.0 on -//! `test/fixtures/reactor`; -//! - Gradle: `github.com/Lithe-IDEA/lithe-plugin-gradle`, `plugin.json` at -//! 581b84b, documents captured at d669dad with Gradle 9.6.1 on -//! `test/fixtures/multi`. -//! -//! Both `plugin.json` files declare `pluginAPIVersion` 0 with -//! `requires: {"buildSystems": 0}`, and the captured documents carry -//! `version` 0. -//! -//! The captured documents write the scratch workspace as `${workspace}`. To -//! refresh them, run `node scripts/package.mjs` and then -//! `LITHE_CAPTURE_DIR=