diff --git a/live_templates/build.gradle b/live_templates/build.gradle index 65d5e23f7..d4444015e 100644 --- a/live_templates/build.gradle +++ b/live_templates/build.gradle @@ -1,24 +1,27 @@ // Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. plugins { - id 'java' - id 'org.jetbrains.intellij' version '0.4.16' + id 'java' + id 'org.jetbrains.intellij' version '0.4.16' } group 'org.intellij.sdk' -version '2.0.0' +version '2.1.0' sourceCompatibility = 1.8 repositories { - mavenCentral() + mavenCentral() } // See https://github.com/JetBrains/gradle-intellij-plugin/ intellij { - version '2019.3.3' - updateSinceUntilBuild = false +// version '2020.1' + + // Sets in plugin.xml + sameSinceUntilBuild = true } patchPluginXml { - version = project.version + // Sets in plugin.xml + version = project.version } \ No newline at end of file diff --git a/live_templates/src/main/java/org/intellij/sdk/liveTemplates/MarkdownTemplateProvider.java b/live_templates/src/main/java/org/intellij/sdk/liveTemplates/MarkdownTemplateProvider.java deleted file mode 100644 index f052130bd..000000000 --- a/live_templates/src/main/java/org/intellij/sdk/liveTemplates/MarkdownTemplateProvider.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. - -package org.intellij.sdk.liveTemplates; - -import com.intellij.codeInsight.template.impl.DefaultLiveTemplatesProvider; -import org.jetbrains.annotations.Nullable; - -public class MarkdownTemplateProvider implements DefaultLiveTemplatesProvider { - @Override - public String[] getDefaultLiveTemplateFiles() { - return new String[]{"liveTemplates/Markdown"}; - } - - @Nullable - @Override - public String[] getHiddenLiveTemplateFiles() { - return null; - } -} diff --git a/live_templates/src/main/resources/META-INF/plugin.xml b/live_templates/src/main/resources/META-INF/plugin.xml index 8a9a4aef0..3071d91bd 100644 --- a/live_templates/src/main/resources/META-INF/plugin.xml +++ b/live_templates/src/main/resources/META-INF/plugin.xml @@ -7,11 +7,9 @@ SDK: Live Templates Sample Project - - 2.0.0 + - - + com.intellij.modules.lang @@ -25,6 +23,7 @@ +
  • 2.1.0 Use com.intellij.defaultLiveTemplates, add custom macro.
  • 2.0.0 Convert to Gradle-based plugin, change plugin ID
  • 1.0.0 Release 2018.3 and earlier.
  • @@ -35,7 +34,7 @@ IntelliJ Platform SDK - + diff --git a/live_templates/src/main/resources/liveTemplates/Markdown.xml b/live_templates/src/main/resources/liveTemplates/Markdown.xml index 725f104ee..611af85f9 100644 --- a/live_templates/src/main/resources/liveTemplates/Markdown.xml +++ b/live_templates/src/main/resources/liveTemplates/Markdown.xml @@ -1,7 +1,7 @@ -