diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 820d450..cf87ce3 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -20,9 +20,9 @@ jobs: distribution: 'temurin' cache: gradle - name: Check Spotless - run: ./gradlew spotlessCheck + run: ./gradlew spotlessCheck -PghActions - name: Run Unit Tests - run: ./gradlew test + run: ./gradlew test -PghActions buildPlugin: runs-on: ubuntu-latest @@ -36,12 +36,12 @@ jobs: distribution: 'temurin' cache: gradle - name: Build plugin - run: ./gradlew --no-configuration-cache buildPlugin + run: ./gradlew --no-configuration-cache buildPlugin -PghActions - uses: actions/upload-artifact@v4.3.3 id: artifact with: name: distributions - path: build/distributions + path: plugin/build/distributions - uses: mshick/add-pr-comment@v2 with: message-id: download-artifact-comment @@ -65,11 +65,11 @@ jobs: distribution: 'temurin' cache: gradle - name: Verify plugin - run: ./gradlew --no-configuration-cache -PverifyVersion=${{ matrix.version }} verifyPlugin + run: ./gradlew --no-configuration-cache -PverifyVersion=${{ matrix.version }} verifyPlugin -PghActions - uses: actions/upload-artifact@v4 with: name: pluginVerifierReports-${{ matrix.version }} - path: build/reports/pluginVerifier + path: plugin/build/reports/pluginVerifier waitForResults: runs-on: ubuntu-latest diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..1de37ea --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +intellij-plugin-parent \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..84d3e8a --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..24338a3 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index ce1c62c..751caec 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -8,6 +8,8 @@ diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..f97651a --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index fe0b0da..232e7b6 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,6 +4,13 @@ + + + diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 249e583..a4b76b9 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 81aa1c0..9355b41 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 1b6c787..f5feea6 100755 --- a/gradlew +++ b/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -55,7 +57,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -80,13 +82,12 @@ do esac done -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" +# This is normally unused +# shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -133,22 +134,29 @@ location of your Java installation." fi else JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." + fi fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac case $MAX_FD in #( '' | soft) :;; #( *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac @@ -193,11 +201,15 @@ if "$cygwin" || "$msys" ; then done fi -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ @@ -205,6 +217,12 @@ set -- \ org.gradle.wrapper.GradleWrapperMain \ "$@" +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + # Use "xargs" to parse quoted args. # # With -n1 it outputs one arg per line, with the quotes and backslashes removed. diff --git a/gradlew.bat b/gradlew.bat index 107acd3..9d21a21 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -13,8 +13,10 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +27,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -40,13 +43,13 @@ if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -56,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -75,13 +78,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/plugin-api-test-client/.gitignore b/plugin-api-test-client/.gitignore new file mode 100644 index 0000000..49c8e34 --- /dev/null +++ b/plugin-api-test-client/.gitignore @@ -0,0 +1,46 @@ +.gradle +build/ +!gradle/wrapper/gradle-wrapper.jar +!**/src/main/**/build/ +!**/src/test/**/build/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +.intellijPlatform +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store + + +.idea/.copilot-plugin \ No newline at end of file diff --git a/plugin-api-test-client/.idea/.gitignore b/plugin-api-test-client/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/plugin-api-test-client/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/plugin-api-test-client/.idea/.name b/plugin-api-test-client/.idea/.name new file mode 100644 index 0000000..1de37ea --- /dev/null +++ b/plugin-api-test-client/.idea/.name @@ -0,0 +1 @@ +intellij-plugin-parent \ No newline at end of file diff --git a/plugin-api-test-client/.idea/compiler.xml b/plugin-api-test-client/.idea/compiler.xml new file mode 100644 index 0000000..b589d56 --- /dev/null +++ b/plugin-api-test-client/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/plugin-api-test-client/.idea/gradle.xml b/plugin-api-test-client/.idea/gradle.xml new file mode 100644 index 0000000..b522781 --- /dev/null +++ b/plugin-api-test-client/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/plugin-api-test-client/.idea/jarRepositories.xml b/plugin-api-test-client/.idea/jarRepositories.xml new file mode 100644 index 0000000..d0b4aa6 --- /dev/null +++ b/plugin-api-test-client/.idea/jarRepositories.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugin-api-test-client/.idea/kotlinc.xml b/plugin-api-test-client/.idea/kotlinc.xml new file mode 100644 index 0000000..ae3f30a --- /dev/null +++ b/plugin-api-test-client/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/plugin-api-test-client/.idea/misc.xml b/plugin-api-test-client/.idea/misc.xml new file mode 100644 index 0000000..bc1d4f2 --- /dev/null +++ b/plugin-api-test-client/.idea/misc.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/plugin-api-test-client/.idea/vcs.xml b/plugin-api-test-client/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/plugin-api-test-client/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/plugin-api-test-client/build.gradle.kts b/plugin-api-test-client/build.gradle.kts new file mode 100644 index 0000000..7071d5c --- /dev/null +++ b/plugin-api-test-client/build.gradle.kts @@ -0,0 +1,29 @@ +plugins { + id("org.springframework.boot") version "3.4.0" + id("io.spring.dependency-management") version "1.1.6" + id("java") +} + +group = "com.vaadin.plugin" +version = "unspecified" + +repositories { + mavenCentral() +} + +dependencies { + implementation("org.springframework.boot:spring-boot-starter-web:3.4.2") + implementation("com.fasterxml.jackson.core:jackson-databind:2.18.2") + implementation("com.vaadin:vaadin-core:24.6.5") + testImplementation("org.springframework.boot:spring-boot-starter-test:3.4.2") +} + +tasks.register("prepareKotlinBuildScriptModel"){} + +tasks.test { + systemProperties["ghActions"] = project.properties["ghActions"] + useJUnitPlatform() + testLogging { + events("PASSED", "FAILED", "SKIPPED") + } +} diff --git a/plugin-api-test-client/gradle/wrapper/gradle-wrapper.jar b/plugin-api-test-client/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..a4b76b9 Binary files /dev/null and b/plugin-api-test-client/gradle/wrapper/gradle-wrapper.jar differ diff --git a/plugin-api-test-client/gradle/wrapper/gradle-wrapper.properties b/plugin-api-test-client/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..9355b41 --- /dev/null +++ b/plugin-api-test-client/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/plugin-api-test-client/src/main/java/com/vaadin/plugin/Client.java b/plugin-api-test-client/src/main/java/com/vaadin/plugin/Client.java new file mode 100644 index 0000000..2e24d56 --- /dev/null +++ b/plugin-api-test-client/src/main/java/com/vaadin/plugin/Client.java @@ -0,0 +1,64 @@ +package com.vaadin.plugin; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.http.MediaType; +import org.springframework.web.client.RestClient; + +import java.io.IOException; +import java.nio.file.Path; +import java.util.Collections; + +public class Client { + + private final String endpoint; + + private final String projectBasePath; + + public Client(String endpoint, String projectBasePath) { + this.endpoint = endpoint; + this.projectBasePath = projectBasePath; + } + + public RestClient.ResponseSpec undo(Path path) throws IOException { + return send("undo", new Message.UndoRedoMessage(Collections.singletonList(path.toString()))); + } + + public RestClient.ResponseSpec redo(Path path) throws IOException { + return send("redo", new Message.UndoRedoMessage(Collections.singletonList(path.toString()))); + } + + public RestClient.ResponseSpec write(Path path, String content) throws IOException { + return send("write", new Message.WriteFileMessage(path.toString(), null, content)); + } + + public RestClient.ResponseSpec restartApplication() throws IOException { + return send("restartApplication", new Message.RestartApplicationMessage()); + } + + public RestClient.ResponseSpec writeBinary(Path path, String content) throws IOException { + return send("writeBase64", new Message.WriteFileMessage(path.toString(), null, content)); + } + + public RestClient.ResponseSpec showInIde(Path path) throws IOException { + return send("showInIde", new Message.ShowInIdeMessage(path.toString(), -10, -2)); + } + + public RestClient.ResponseSpec refresh() throws IOException { + return send("refresh", new Message.RefreshMessage()); + } + + public RestClient.ResponseSpec delete(Path path) throws IOException { + return send("delete", new Message.DeleteMessage(path.toString())); + } + + private RestClient.ResponseSpec send(String command, Object data) throws JsonProcessingException { + Message.CopilotRestRequest message = new Message.CopilotRestRequest(command, projectBasePath, data); + String body = new ObjectMapper().writeValueAsString(message); + org.springframework.web.client.RestClient.ResponseSpec response = org.springframework.web.client.RestClient.create().post() + .uri(endpoint).contentType(MediaType.APPLICATION_JSON) + .body(body).retrieve(); + return response; + } + +} diff --git a/plugin-api-test-client/src/main/java/com/vaadin/plugin/Message.java b/plugin-api-test-client/src/main/java/com/vaadin/plugin/Message.java new file mode 100644 index 0000000..95c100b --- /dev/null +++ b/plugin-api-test-client/src/main/java/com/vaadin/plugin/Message.java @@ -0,0 +1,34 @@ +package com.vaadin.plugin; + +import java.util.List; + +public class Message { + + record Command(String command, Object data) { + } + + record CopilotRestRequest(String command, String projectBasePath, Object data) { + } + + record WriteFileMessage(String file, String undoLabel, String content) { + } + + record UndoRedoMessage(List files) { + } + + record ShowInIdeMessage(String file, Integer line, Integer column) { + } + + record RefreshMessage() { + } + + record RestartApplicationMessage() { + } + + record CompileMessage(List files) { + } + + record DeleteMessage(String file) { + } + +} diff --git a/plugin-api-test-client/src/main/java/com/vaadin/plugin/TestApplication.java b/plugin-api-test-client/src/main/java/com/vaadin/plugin/TestApplication.java new file mode 100644 index 0000000..67d4d0e --- /dev/null +++ b/plugin-api-test-client/src/main/java/com/vaadin/plugin/TestApplication.java @@ -0,0 +1,7 @@ +package com.vaadin.plugin; + +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class TestApplication { +} diff --git a/plugin-api-test-client/src/test/java/com/vaadin/plugin/PluginApiTests.java b/plugin-api-test-client/src/test/java/com/vaadin/plugin/PluginApiTests.java new file mode 100644 index 0000000..52dc844 --- /dev/null +++ b/plugin-api-test-client/src/test/java/com/vaadin/plugin/PluginApiTests.java @@ -0,0 +1,89 @@ +package com.vaadin.plugin; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.http.HttpStatusCode; +import org.springframework.web.client.RestClient; + +import java.io.FileReader; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.Base64; +import java.util.Properties; + +@SpringBootTest(classes = {SpringBootApplication.class}) +public class PluginApiTests { + + private static final String PROJECT_BASE_PATH = "/Users/vaadin/src/intellij-plugin"; + + private static final String TEST_RESOURCES_PATH = PROJECT_BASE_PATH + "/plugin-api-test-client/src/test/resources"; + + private static Client client; + + @BeforeAll + public static void beforeAll() throws IOException { + if (System.getProperty("ghActions") != null) { + return; + } + var props = new Properties(); + props.load(new FileReader(PROJECT_BASE_PATH + "/.idea/.copilot-plugin")); + client = new Client(props.getProperty("endpoint"), PROJECT_BASE_PATH); + } + + @Test + public void testWrite() throws IOException { + if (client == null) { + return; + } + var filePath = Path.of(TEST_RESOURCES_PATH + "/test.txt"); + var response = client.write(filePath, "Hello World"); + assertHttpOk(response); + Assertions.assertTrue(Files.exists(filePath)); + Files.delete(filePath); + } + + @Test + public void testWriteBinary() throws IOException { + if (client == null) { + return; + } + var samplePath = Path.of(TEST_RESOURCES_PATH + "/samples/image.png"); + var binaryContent = Files.readAllBytes(samplePath); + var base64 = Base64.getEncoder().encodeToString(binaryContent); + + var filePath = Path.of(TEST_RESOURCES_PATH + "/image.png"); + var response = client.writeBinary(filePath, base64); + assertHttpOk(response); + Assertions.assertTrue(Files.exists(filePath)); + + var fileContent = Files.readAllBytes(filePath); + Assertions.assertEquals(binaryContent.length, fileContent.length); + Files.delete(filePath); + } + + @Test + public void testDelete() throws IOException { + if (client == null) { + return; + } + var filePath = Path.of(TEST_RESOURCES_PATH + "/test.txt"); + var response = client.write(filePath, "Hello World"); + assertHttpOk(response); + Assertions.assertTrue(Files.exists(filePath)); + + response = client.delete(filePath); + assertHttpOk(response); + Assertions.assertFalse(Files.exists(filePath)); + } + + // add more tests when needed + + private void assertHttpOk(RestClient.ResponseSpec response) { + Assertions.assertEquals(HttpStatusCode.valueOf(200), response.toBodilessEntity().getStatusCode()); + } + +} diff --git a/plugin-api-test-client/src/test/resources/samples/image.png b/plugin-api-test-client/src/test/resources/samples/image.png new file mode 100644 index 0000000..f6ef8a4 Binary files /dev/null and b/plugin-api-test-client/src/test/resources/samples/image.png differ diff --git a/plugin/.gitignore b/plugin/.gitignore new file mode 100644 index 0000000..49c8e34 --- /dev/null +++ b/plugin/.gitignore @@ -0,0 +1,46 @@ +.gradle +build/ +!gradle/wrapper/gradle-wrapper.jar +!**/src/main/**/build/ +!**/src/test/**/build/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +.intellijPlatform +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store + + +.idea/.copilot-plugin \ No newline at end of file diff --git a/LICENSE b/plugin/LICENSE similarity index 100% rename from LICENSE rename to plugin/LICENSE diff --git a/README.md b/plugin/README.md similarity index 100% rename from README.md rename to plugin/README.md diff --git a/ampli.json b/plugin/ampli.json similarity index 100% rename from ampli.json rename to plugin/ampli.json diff --git a/build.gradle.kts b/plugin/build.gradle.kts similarity index 100% rename from build.gradle.kts rename to plugin/build.gradle.kts diff --git a/gradle.properties b/plugin/gradle.properties similarity index 100% rename from gradle.properties rename to plugin/gradle.properties diff --git a/plugin/gradle/wrapper/gradle-wrapper.jar b/plugin/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..249e583 Binary files /dev/null and b/plugin/gradle/wrapper/gradle-wrapper.jar differ diff --git a/plugin/gradle/wrapper/gradle-wrapper.properties b/plugin/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..81aa1c0 --- /dev/null +++ b/plugin/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/plugin/gradlew b/plugin/gradlew new file mode 100755 index 0000000..1b6c787 --- /dev/null +++ b/plugin/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/plugin/gradlew.bat b/plugin/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/plugin/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/plugin/settings.gradle.kts b/plugin/settings.gradle.kts new file mode 100644 index 0000000..2e4f31e --- /dev/null +++ b/plugin/settings.gradle.kts @@ -0,0 +1,8 @@ +pluginManagement { + repositories { + mavenCentral() + gradlePluginPortal() + } +} + +rootProject.name = "intellij-plugin" diff --git a/src/main/kotlin/com/amplitude/ampli/Ampli.kt b/plugin/src/main/kotlin/com/amplitude/ampli/Ampli.kt similarity index 100% rename from src/main/kotlin/com/amplitude/ampli/Ampli.kt rename to plugin/src/main/kotlin/com/amplitude/ampli/Ampli.kt diff --git a/src/main/kotlin/com/vaadin/plugin/VaadinProjectDetector.kt b/plugin/src/main/kotlin/com/vaadin/plugin/VaadinProjectDetector.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/VaadinProjectDetector.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/VaadinProjectDetector.kt diff --git a/src/main/kotlin/com/vaadin/plugin/actions/DebugUsingHotSwapAgentAction.kt b/plugin/src/main/kotlin/com/vaadin/plugin/actions/DebugUsingHotSwapAgentAction.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/actions/DebugUsingHotSwapAgentAction.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/actions/DebugUsingHotSwapAgentAction.kt diff --git a/src/main/kotlin/com/vaadin/plugin/actions/InstallOrUpdateHotSwapAction.kt b/plugin/src/main/kotlin/com/vaadin/plugin/actions/InstallOrUpdateHotSwapAction.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/actions/InstallOrUpdateHotSwapAction.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/actions/InstallOrUpdateHotSwapAction.kt diff --git a/src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveAction.kt b/plugin/src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveAction.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveAction.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveAction.kt diff --git a/src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveActionInfo.kt b/plugin/src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveActionInfo.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveActionInfo.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/actions/VaadinCompileOnSaveActionInfo.kt diff --git a/src/main/kotlin/com/vaadin/plugin/actions/VaadinOnSaveInfoProvider.kt b/plugin/src/main/kotlin/com/vaadin/plugin/actions/VaadinOnSaveInfoProvider.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/actions/VaadinOnSaveInfoProvider.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/actions/VaadinOnSaveInfoProvider.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/CommandRequest.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/CommandRequest.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/CommandRequest.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/CommandRequest.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/CopilotErrorHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/CopilotErrorHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/CopilotErrorHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/CopilotErrorHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/CopilotPluginUtil.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/CopilotPluginUtil.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/CopilotPluginUtil.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/CopilotPluginUtil.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/DefaultProgramPatcher.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/DefaultProgramPatcher.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/DefaultProgramPatcher.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/DefaultProgramPatcher.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/RestUtil.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/RestUtil.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/RestUtil.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/RestUtil.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/AbstractHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/AbstractHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/AbstractHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/AbstractHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/CompileFilesHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/CompileFilesHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/CompileFilesHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/CompileFilesHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/DeleteFileHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/DeleteFileHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/DeleteFileHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/DeleteFileHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/GetModulePathsHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/GetModulePathsHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/GetModulePathsHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/GetModulePathsHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/Handler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/Handler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/Handler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/Handler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/HandlerResponse.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/HandlerResponse.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/HandlerResponse.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/HandlerResponse.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/RedoHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/RedoHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/RedoHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/RedoHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/RefreshHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/RefreshHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/RefreshHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/RefreshHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/RestartApplicationHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/RestartApplicationHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/RestartApplicationHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/RestartApplicationHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/ShowInIdeHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/ShowInIdeHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/ShowInIdeHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/ShowInIdeHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/UndoHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/UndoHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/UndoHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/UndoHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteBase64FileHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteBase64FileHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteBase64FileHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteBase64FileHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteFileHandler.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteFileHandler.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteFileHandler.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/handler/WriteFileHandler.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotDynamicPluginListener.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotDynamicPluginListener.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotDynamicPluginListener.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotDynamicPluginListener.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotVaadinProjectListener.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotVaadinProjectListener.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotVaadinProjectListener.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotVaadinProjectListener.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotRestService.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotRestService.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotRestService.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotRestService.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManager.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManager.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManager.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManager.kt diff --git a/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerImpl.kt b/plugin/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerImpl.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerImpl.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerImpl.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinEndpointsProvider.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinEndpointsProvider.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinEndpointsProvider.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinEndpointsProvider.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinFlowEndpointsProvider.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinFlowEndpointsProvider.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinFlowEndpointsProvider.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinFlowEndpointsProvider.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinHillaEndpointsProvider.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinHillaEndpointsProvider.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinHillaEndpointsProvider.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinHillaEndpointsProvider.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinImplicitUsageProvider.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinImplicitUsageProvider.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinImplicitUsageProvider.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinImplicitUsageProvider.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinModel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinModel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinModel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinModel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinReferenceContributor.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinReferenceContributor.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinReferenceContributor.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinReferenceContributor.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinRoute.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinRoute.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinRoute.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinRoute.kt diff --git a/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinUrlResolver.kt b/plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinUrlResolver.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/endpoints/VaadinUrlResolver.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/endpoints/VaadinUrlResolver.kt diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt b/plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/BadJBRFoundDialog.kt diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentExecutor.kt b/plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentExecutor.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentExecutor.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentExecutor.kt diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentProgramPatcher.kt b/plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentProgramPatcher.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentProgramPatcher.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentProgramPatcher.kt diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentRunner.kt b/plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentRunner.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentRunner.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/HotswapAgentRunner.kt diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/JdkUtil.kt b/plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/JdkUtil.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/hotswapagent/JdkUtil.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/JdkUtil.kt diff --git a/src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt b/plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/hotswapagent/NoJBRFoundDialog.kt diff --git a/src/main/kotlin/com/vaadin/plugin/listeners/ConfigurationCheckVaadinProjectListener.kt b/plugin/src/main/kotlin/com/vaadin/plugin/listeners/ConfigurationCheckVaadinProjectListener.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/listeners/ConfigurationCheckVaadinProjectListener.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/listeners/ConfigurationCheckVaadinProjectListener.kt diff --git a/src/main/kotlin/com/vaadin/plugin/listeners/VaadinProjectListener.kt b/plugin/src/main/kotlin/com/vaadin/plugin/listeners/VaadinProjectListener.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/listeners/VaadinProjectListener.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/listeners/VaadinProjectListener.kt diff --git a/src/main/kotlin/com/vaadin/plugin/module/QuickStarterPanel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/module/QuickStarterPanel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/module/QuickStarterPanel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/module/QuickStarterPanel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/module/SkeletonStarterPanel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/module/SkeletonStarterPanel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/module/SkeletonStarterPanel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/module/SkeletonStarterPanel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/module/VaadinPanel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinPanel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/module/VaadinPanel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinPanel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectBuilderAdapter.kt b/plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectBuilderAdapter.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/module/VaadinProjectBuilderAdapter.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectBuilderAdapter.kt diff --git a/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizard.kt b/plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizard.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizard.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizard.kt diff --git a/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizardStep.kt b/plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizardStep.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizardStep.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/module/VaadinProjectWizardStep.kt diff --git a/src/main/kotlin/com/vaadin/plugin/starter/DownloadableModel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/starter/DownloadableModel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/starter/DownloadableModel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/starter/DownloadableModel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/starter/QuickStarterModel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/starter/QuickStarterModel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/starter/QuickStarterModel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/starter/QuickStarterModel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/starter/SkeletonStarterModel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/starter/SkeletonStarterModel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/starter/SkeletonStarterModel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/starter/SkeletonStarterModel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/starter/StarterSupport.kt b/plugin/src/main/kotlin/com/vaadin/plugin/starter/StarterSupport.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/starter/StarterSupport.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/starter/StarterSupport.kt diff --git a/src/main/kotlin/com/vaadin/plugin/starter/StarterSupportMatrixElement.kt b/plugin/src/main/kotlin/com/vaadin/plugin/starter/StarterSupportMatrixElement.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/starter/StarterSupportMatrixElement.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/starter/StarterSupportMatrixElement.kt diff --git a/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbol.kt b/plugin/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbol.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbol.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbol.kt diff --git a/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReference.kt b/plugin/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReference.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReference.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReference.kt diff --git a/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReferenceProvider.kt b/plugin/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReferenceProvider.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReferenceProvider.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/symbols/HillaSymbolReferenceProvider.kt diff --git a/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt b/plugin/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt diff --git a/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidget.kt b/plugin/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidget.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidget.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidget.kt diff --git a/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidgetFactory.kt b/plugin/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidgetFactory.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidgetFactory.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarWidgetFactory.kt diff --git a/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettings.kt b/plugin/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettings.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettings.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettings.kt diff --git a/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsComponent.kt b/plugin/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsComponent.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsComponent.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsComponent.kt diff --git a/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsConfigurable.kt b/plugin/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsConfigurable.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsConfigurable.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/ui/settings/VaadinSettingsConfigurable.kt diff --git a/src/main/kotlin/com/vaadin/plugin/utils/AmpliUtil.kt b/plugin/src/main/kotlin/com/vaadin/plugin/utils/AmpliUtil.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/utils/AmpliUtil.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/utils/AmpliUtil.kt diff --git a/src/main/kotlin/com/vaadin/plugin/utils/IdeUtil.kt b/plugin/src/main/kotlin/com/vaadin/plugin/utils/IdeUtil.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/utils/IdeUtil.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/utils/IdeUtil.kt diff --git a/src/main/kotlin/com/vaadin/plugin/utils/VaadinHomeUtil.kt b/plugin/src/main/kotlin/com/vaadin/plugin/utils/VaadinHomeUtil.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/utils/VaadinHomeUtil.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/utils/VaadinHomeUtil.kt diff --git a/src/main/kotlin/com/vaadin/plugin/utils/VaadinIcons.kt b/plugin/src/main/kotlin/com/vaadin/plugin/utils/VaadinIcons.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/utils/VaadinIcons.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/utils/VaadinIcons.kt diff --git a/src/main/kotlin/com/vaadin/plugin/utils/VaadinProjectUtil.kt b/plugin/src/main/kotlin/com/vaadin/plugin/utils/VaadinProjectUtil.kt similarity index 100% rename from src/main/kotlin/com/vaadin/plugin/utils/VaadinProjectUtil.kt rename to plugin/src/main/kotlin/com/vaadin/plugin/utils/VaadinProjectUtil.kt diff --git a/src/main/resources/META-INF/plugin.xml b/plugin/src/main/resources/META-INF/plugin.xml similarity index 100% rename from src/main/resources/META-INF/plugin.xml rename to plugin/src/main/resources/META-INF/plugin.xml diff --git a/src/main/resources/META-INF/pluginIcon.svg b/plugin/src/main/resources/META-INF/pluginIcon.svg similarity index 100% rename from src/main/resources/META-INF/pluginIcon.svg rename to plugin/src/main/resources/META-INF/pluginIcon.svg diff --git a/src/main/resources/META-INF/vaadin-injections.xml b/plugin/src/main/resources/META-INF/vaadin-injections.xml similarity index 100% rename from src/main/resources/META-INF/vaadin-injections.xml rename to plugin/src/main/resources/META-INF/vaadin-injections.xml diff --git a/src/main/resources/META-INF/vaadin-with-javascript.xml b/plugin/src/main/resources/META-INF/vaadin-with-javascript.xml similarity index 100% rename from src/main/resources/META-INF/vaadin-with-javascript.xml rename to plugin/src/main/resources/META-INF/vaadin-with-javascript.xml diff --git a/src/main/resources/META-INF/vaadin-with-microservices-jvm.xml b/plugin/src/main/resources/META-INF/vaadin-with-microservices-jvm.xml similarity index 100% rename from src/main/resources/META-INF/vaadin-with-microservices-jvm.xml rename to plugin/src/main/resources/META-INF/vaadin-with-microservices-jvm.xml diff --git a/src/main/resources/META-INF/vaadin-with-microservices.xml b/plugin/src/main/resources/META-INF/vaadin-with-microservices.xml similarity index 100% rename from src/main/resources/META-INF/vaadin-with-microservices.xml rename to plugin/src/main/resources/META-INF/vaadin-with-microservices.xml diff --git a/src/main/resources/META-INF/vaadin-with-ultimate.xml b/plugin/src/main/resources/META-INF/vaadin-with-ultimate.xml similarity index 100% rename from src/main/resources/META-INF/vaadin-with-ultimate.xml rename to plugin/src/main/resources/META-INF/vaadin-with-ultimate.xml diff --git a/src/main/resources/hotswap-agent.jar b/plugin/src/main/resources/hotswap-agent.jar similarity index 100% rename from src/main/resources/hotswap-agent.jar rename to plugin/src/main/resources/hotswap-agent.jar diff --git a/src/main/resources/vaadin/flow-language-injections.xml b/plugin/src/main/resources/vaadin/flow-language-injections.xml similarity index 100% rename from src/main/resources/vaadin/flow-language-injections.xml rename to plugin/src/main/resources/vaadin/flow-language-injections.xml diff --git a/src/main/resources/vaadin/icons/debug.svg b/plugin/src/main/resources/vaadin/icons/debug.svg similarity index 100% rename from src/main/resources/vaadin/icons/debug.svg rename to plugin/src/main/resources/vaadin/icons/debug.svg diff --git a/src/main/resources/vaadin/icons/debug_dark.svg b/plugin/src/main/resources/vaadin/icons/debug_dark.svg similarity index 100% rename from src/main/resources/vaadin/icons/debug_dark.svg rename to plugin/src/main/resources/vaadin/icons/debug_dark.svg diff --git a/src/main/resources/vaadin/icons/hilla.svg b/plugin/src/main/resources/vaadin/icons/hilla.svg similarity index 100% rename from src/main/resources/vaadin/icons/hilla.svg rename to plugin/src/main/resources/vaadin/icons/hilla.svg diff --git a/src/main/resources/vaadin/icons/module.svg b/plugin/src/main/resources/vaadin/icons/module.svg similarity index 100% rename from src/main/resources/vaadin/icons/module.svg rename to plugin/src/main/resources/vaadin/icons/module.svg diff --git a/src/main/resources/vaadin/icons/rerun.svg b/plugin/src/main/resources/vaadin/icons/rerun.svg similarity index 100% rename from src/main/resources/vaadin/icons/rerun.svg rename to plugin/src/main/resources/vaadin/icons/rerun.svg diff --git a/src/main/resources/vaadin/icons/rerun_dark.svg b/plugin/src/main/resources/vaadin/icons/rerun_dark.svg similarity index 100% rename from src/main/resources/vaadin/icons/rerun_dark.svg rename to plugin/src/main/resources/vaadin/icons/rerun_dark.svg diff --git a/src/main/resources/vaadin/icons/vaadin.svg b/plugin/src/main/resources/vaadin/icons/vaadin.svg similarity index 100% rename from src/main/resources/vaadin/icons/vaadin.svg rename to plugin/src/main/resources/vaadin/icons/vaadin.svg diff --git a/src/main/resources/vaadin/icons/vaadin_dark.svg b/plugin/src/main/resources/vaadin/icons/vaadin_dark.svg similarity index 100% rename from src/main/resources/vaadin/icons/vaadin_dark.svg rename to plugin/src/main/resources/vaadin/icons/vaadin_dark.svg diff --git a/src/test/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerTest.kt b/plugin/src/test/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerTest.kt similarity index 99% rename from src/test/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerTest.kt rename to plugin/src/test/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerTest.kt index 3d71880..8799cf4 100644 --- a/src/test/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerTest.kt +++ b/plugin/src/test/kotlin/com/vaadin/plugin/copilot/service/CopilotUndoManagerTest.kt @@ -21,8 +21,10 @@ import java.nio.file.Files import java.nio.file.Path import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeEach +import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Test +@Disabled class CopilotUndoManagerTest : BasePlatformTestCase() { private lateinit var tempFile: File diff --git a/settings.gradle.kts b/settings.gradle.kts index 2e4f31e..591a373 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,8 +1,2 @@ -pluginManagement { - repositories { - mavenCentral() - gradlePluginPortal() - } -} - -rootProject.name = "intellij-plugin" +rootProject.name = "intellij-plugin-parent" +include("plugin", "plugin-api-test-client")