1.0 KiB
1.0 KiB
Meaning of Versions
Versions are defined in build.gradle.kts
.
intellij.version
is used for -
- Building the plugin, so the source code needs to be compatible with it.
- Determining the maximum supported version. This means that it needs to be updated every time a new IntelliJ Branch version is released. For example, 2021.1, 2021.2, etc.
tasks.patchPluginXml.sinceBuild
is used for -
- Determinig the minimum supported version, so the code must not reference classes not introduced yet.
Testing
- Use Gradle to run the plugin.
- Don't use IntelliJ to run the plugin.
ktfmt/ktfmt_idea_plugin $ ./gradlew runIde
Point intellij.alternativeIdePath
in build.gradle.kts
to a local installation of IntelliJ / Android Studio to test the plugin with it. Don't forget to enable the plugin. Easiest way: Cmd-shift-A, type 'ktfmt', look for Preferences.
Another way: change intellij.version
and comment out alternativeIdePath
. This will run the plugin on whatever version you put - it'll be downloaded through Gradle.