diff --git a/.idea/runConfigurations/Plugin.xml b/.idea/runConfigurations/Plugin.xml new file mode 100644 index 0000000..3e6b64e --- /dev/null +++ b/.idea/runConfigurations/Plugin.xml @@ -0,0 +1,23 @@ +<component name="ProjectRunConfigurationManager"> + <configuration default="false" name="Plugin" type="GradleRunConfiguration" factoryName="Gradle"> + <ExternalSystemSettings> + <option name="executionName" /> + <option name="externalProjectPath" value="$PROJECT_DIR$" /> + <option name="externalSystemIdString" value="GRADLE" /> + <option name="scriptParameters" value="" /> + <option name="taskDescriptions"> + <list /> + </option> + <option name="taskNames"> + <list> + <option value=":runIde" /> + </list> + </option> + <option name="vmOptions" /> + </ExternalSystemSettings> + <ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess> + <ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess> + <DebugAllEnabled>false</DebugAllEnabled> + <method v="2" /> + </configuration> +</component> \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..5862ab1 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,35 @@ +@file:Suppress("ConvertLambdaToReference") + +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + +plugins { + kotlin("jvm") version "1.6.10" + id("org.jetbrains.intellij") version "1.6.0" +} + +group = "com.chylex.intellij.inspectionlens" +version = "0.0.1" + +repositories { + mavenCentral() +} + +intellij { + version.set("2022.1") + updateSinceUntilBuild.set(false) +} + +tasks.patchPluginXml { + sinceBuild.set("213") +} + +tasks.buildSearchableOptions { + enabled = false +} + +tasks.withType<KotlinCompile> { + kotlinOptions.jvmTarget = "11" + kotlinOptions.freeCompilerArgs = listOf( + "-Xjvm-default=enable" + ) +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..0d6aa7b --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +kotlin.stdlib.default.dependency=false diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..f7be99d --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "InspectionLens" diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml new file mode 100644 index 0000000..076bf31 --- /dev/null +++ b/src/main/resources/META-INF/plugin.xml @@ -0,0 +1,13 @@ +<idea-plugin> + <id>com.chylex.intellij.inspectionlens</id> + <name>Inspection Lens</name> + <vendor url="https://chylex.com">chylex</vendor> + + <description><![CDATA[ + Shows errors, warnings, and other inspection highlights inline. + <br><br> + Inspired by <a href="https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens">Error Lens</a> for VS Code, and <a href="https://github.com/despinoza1/InlineError">Inline Error</a> for IntelliJ Platform. + ]]></description> + + <depends>com.intellij.modules.platform</depends> +</idea-plugin>