Skip to content

Commit c5b93e8

Browse files
Prepare Intellij plugin for publishing
1 parent e7e5b79 commit c5b93e8

File tree

9 files changed

+211
-13
lines changed

9 files changed

+211
-13
lines changed

idea-plugin/build.gradle.kts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99

1010
fun properties(key: String) = project.findProperty(key).toString()
1111

12-
group = "org.jetbrains.compose.desktop.ide.preview"
12+
group = "org.jetbrains.compose.desktop.ide"
1313
version = properties("deploy.version")
1414

1515
repositories {
@@ -18,7 +18,7 @@ repositories {
1818
}
1919

2020
intellij {
21-
pluginName = "Compose Desktop Preview"
21+
pluginName = "Compose for Desktop IDE Support"
2222
type = "IC"
2323
downloadSources = true
2424
updateSinceUntilBuild = true
@@ -31,6 +31,11 @@ intellij {
3131
)
3232
}
3333

34+
tasks.buildSearchableOptions {
35+
// temporary workaround
36+
enabled = false
37+
}
38+
3439
tasks {
3540
// Set the compatibility versions to 1.8
3641
withType<JavaCompile> {
@@ -40,4 +45,9 @@ tasks {
4045
withType<KotlinJvmCompile> {
4146
kotlinOptions.jvmTarget = "1.8"
4247
}
48+
49+
publishPlugin {
50+
token(System.getenv("IDE_PLUGIN_PUBLISH_TOKEN"))
51+
channels("Alpha")
52+
}
4353
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.jetbrains.compose.desktop.idea.preview
17+
package org.jetbrains.compose.desktop.ide.preview
1818

1919
import com.intellij.codeInspection.reference.EntryPoint
2020
import com.intellij.codeInspection.reference.RefElement

idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/idea/preview/PreviewIcons.kt renamed to idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/ide/preview/PreviewIcons.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
44
*/
55

6-
package org.jetbrains.compose.desktop.idea.preview
6+
package org.jetbrains.compose.desktop.ide.preview
77

88
import com.intellij.openapi.util.IconLoader
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
44
*/
55

6-
package org.jetbrains.compose.desktop.idea.preview
6+
package org.jetbrains.compose.desktop.ide.preview
77

88
internal object PreviewMessages {
99
fun runPreview(name: String): String = "Preview $name"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.jetbrains.compose.desktop.idea.preview
17+
package org.jetbrains.compose.desktop.ide.preview
1818

1919
import com.intellij.execution.actions.ConfigurationContext
2020
import com.intellij.execution.actions.LazyRunConfigurationProducer
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.jetbrains.compose.desktop.idea.preview
17+
package org.jetbrains.compose.desktop.ide.preview
1818

1919
import com.intellij.execution.lineMarker.ExecutorAction
2020
import com.intellij.execution.lineMarker.RunLineMarkerContributor
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.jetbrains.compose.desktop.idea.preview
17+
package org.jetbrains.compose.desktop.ide.preview
1818

1919
import com.intellij.psi.util.parentOfType
2020
import org.jetbrains.kotlin.asJava.findFacadeClass
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
<idea-plugin>
2-
<id>org.jetbrains.compose.desktop.idea.preview</id>
3-
<name>Compose Desktop Preview</name>
2+
<id>org.jetbrains.compose.desktop.ide</id>
3+
<name>Compose for Desktop IDE Support</name>
44
<vendor>JetBrains</vendor>
5+
<description>
6+
<![CDATA[
7+
IDE support for developing
8+
<a href="https://www.jetbrains.com/lp/compose/">Compose for Desktop</a>
9+
applications.
10+
The main feature at the moment is IDE preview of composable functions
11+
marked by @Preview annotation.
12+
]]>
13+
14+
</description>
515

616
<!-- Product and plugin compatibility requirements -->
717
<!-- https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html -->
818
<depends>com.intellij.modules.platform</depends>
19+
<depends>com.intellij.modules.java</depends>
920
<depends>com.intellij.gradle</depends>
1021
<depends>org.jetbrains.kotlin</depends>
1122

1223
<extensions defaultExtensionNs="com.intellij">
1324
<runLineMarkerContributor
1425
language="kotlin"
15-
implementationClass="org.jetbrains.compose.desktop.idea.preview.PreviewRunLineMarkerContributor"/>
26+
implementationClass="org.jetbrains.compose.desktop.ide.preview.PreviewRunLineMarkerContributor"/>
1627
<runConfigurationProducer
17-
implementation="org.jetbrains.compose.desktop.idea.preview.PreviewRunConfigurationProducer"/>
18-
<deadCode implementation="org.jetbrains.compose.desktop.idea.preview.PreviewEntryPoint" />
28+
implementation="org.jetbrains.compose.desktop.ide.preview.PreviewRunConfigurationProducer"/>
29+
<deadCode implementation="org.jetbrains.compose.desktop.ide.preview.PreviewEntryPoint" />
1930
</extensions>
2031
</idea-plugin>
Lines changed: 177 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)