Skip to content

Commit 3a7114f

Browse files
committed
plugin description
Signed-off-by: shalom <[email protected]>
1 parent 77fed76 commit 3a7114f

File tree

3 files changed

+27
-35
lines changed

3 files changed

+27
-35
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
# digma-jetbrains-plugin
22

3-
TBD
3+
<!-- Plugin description -->
4+
**Digma is a Continuous Feedback platform. It integrates with your observability
5+
backend to provide meaningful code insights in the IDE. While coding,
6+
you can be aware of how the code behaves in runtime in various staging and production environments**
47

8+
### Digma provides integrated insights multiple code behavior topics including:
9+
10+
- Error hotspots
11+
- Usage bottlenecks and concurrency
12+
- Performance trends
13+
14+
<!-- Plugin description end -->
515

616
## Build
17+
718
The project must be built with jdk 11 or later as the gradle jdk.</br>
819

920
./gradlew buildPlugin -Porg.gradle.java.home=<PATH TO JDK 11></br>

build.gradle.kts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import common.properties
2+
import org.jetbrains.changelog.markdownToHTML
23

34
fun properties(key: String) = properties(key,project)
45

@@ -92,17 +93,17 @@ tasks {
9293
untilBuild.set(properties("pluginUntilBuild"))
9394

9495
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
95-
// pluginDescription.set(
96-
// projectDir.resolve("README.md").readText().lines().run {
97-
// val start = "<!-- Plugin description -->"
98-
// val end = "<!-- Plugin description end -->"
99-
//
100-
// if (!containsAll(listOf(start, end))) {
101-
// throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
102-
// }
103-
// subList(indexOf(start) + 1, indexOf(end))
104-
// }.joinToString("\n").run { markdownToHTML(this) }
105-
// )
96+
pluginDescription.set(
97+
projectDir.resolve("README.md").readText().lines().run {
98+
val start = "<!-- Plugin description -->"
99+
val end = "<!-- Plugin description end -->"
100+
101+
if (!containsAll(listOf(start, end))) {
102+
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
103+
}
104+
subList(indexOf(start) + 1, indexOf(end))
105+
}.joinToString("\n").run { markdownToHTML(this) }
106+
)
106107

107108
// Get the latest available change notes from the changelog file
108109
// changeNotes.set(provider {

src/main/resources/META-INF/plugin.xml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,9 @@
55
<version>${project.version}</version>
66
<name>Digma Continuous Feedback</name>
77
<vendor>digma.ai</vendor>
8-
<description><![CDATA[
9-
<p>Digma is a Continuous Feedback platform. It integrates with your observability
10-
backend to provide meaningful code insights in the IDE. While coding,
11-
you can be aware of how the code behaves in runtime in various staging and production environments
12-
</p>
13-
<br/>
14-
15-
<p><h2><strong>Digma provides integrated insights multiple code behavior topics including:</strong></h2></p>
16-
17-
<ul>
18-
<li>
19-
Error hostpots
20-
</li>
21-
22-
<li>
23-
Usage bottlenecks and concurrency
24-
</li>
25-
26-
<li>
27-
Performance trends
28-
</li>
29-
</ul>
30-
]]></description>
8+
<description>
9+
Please write plugin description in README.md , see <!-- Plugin description --> section
10+
</description>
3111
<depends>com.intellij.modules.platform</depends>
3212
<depends>com.intellij.modules.vcs</depends>
3313

0 commit comments

Comments
 (0)