diff --git a/idea-plugin/build.gradle.kts b/idea-plugin/build.gradle.kts index 4e0d369958..969505f423 100644 --- a/idea-plugin/build.gradle.kts +++ b/idea-plugin/build.gradle.kts @@ -18,15 +18,14 @@ repositories { intellij { pluginName = "Compose for Desktop IDE Support" - type = "IC" - downloadSources = true - updateSinceUntilBuild = true - version = "203.7717.56" + type = properties("platform.type") + version = properties("platform.version") + downloadSources = properties("platform.download.sources").toBoolean() setPlugins( "java", "com.intellij.gradle", - "org.jetbrains.kotlin:203-1.4.32-release-IJ7148.5" + "org.jetbrains.kotlin" ) } @@ -47,6 +46,16 @@ tasks { publishPlugin { token(System.getenv("IDE_PLUGIN_PUBLISH_TOKEN")) - channels("Alpha") + channels(properties("plugin.channels")) + } + + patchPluginXml { + sinceBuild(properties("plugin.since.build")) + untilBuild(properties("plugin.until.build")) + } + + runPluginVerifier { + ideVersions(properties("plugin.verifier.ide.versions")) + downloadDirectory("${project.buildDir}/pluginVerifier/ides") } } diff --git a/idea-plugin/gradle.properties b/idea-plugin/gradle.properties index 647e111ba9..fe353d54d2 100644 --- a/idea-plugin/gradle.properties +++ b/idea-plugin/gradle.properties @@ -3,3 +3,12 @@ kotlin.stdlib.default.dependency = false deploy.version=0.1-SNAPSHOT + +plugin.channels=alpha +plugin.since.build=203 +plugin.until.build=211.* +plugin.verifier.ide.versions=2020.3.2, 2021.1 + +platform.type=IC +platform.version=2020.3.2 +platform.download.sources=true