You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val filePath =Paths.get(project.buildDir.path, relativePath)
73
+
74
+
// Check if the file exists and read its content or use a default string
75
+
val changeLogContents:String=if (Files.exists(filePath)) {
76
+
filePath.toFile().readText()
77
+
} else {
78
+
"Development Build"
79
+
}
80
+
81
+
73
82
tasks {
74
83
compileKotlin {
75
84
kotlinOptions {
@@ -80,112 +89,7 @@ tasks {
80
89
81
90
tasks {
82
91
patchPluginXml {
83
-
changeNotes.set("""
84
-
<h3>v0.3.10</h3>
85
-
<ul>
86
-
<li>Add support for IntelliJ 2022.3 and Update systemd data for v252 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/150">#150</a></li>
87
-
</ul>
88
-
<h3>v0.3.9</h3>
89
-
<ul>
90
-
<li>Add support for IntelliJ 2022.2 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/143">#143</a></li>
91
-
</ul>
92
-
<h3>v0.3.8</h3>
93
-
<ul>
94
-
<li>Fix weak warning for absolute paths when using allowed prefix <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/141">#141</a></li>
95
-
</ul>
96
-
<h3>v0.3.7</h3>
97
-
<ul>
98
-
<li>Update build to be based off of systemd v251 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/131">#131</a></li>
99
-
<li>Fix NPE in some cases when getting doc link <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/114">#114</a></li>
100
-
<li>Validation warning when shell meta-characters are in an Exec directive <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/60">#60</a></li>
101
-
<li>Add support for auto-completion / validation of Unit options <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/102">#102</a></li>
102
-
<li>Add weak warning when an absolute path isn"t used on an Exec directive<a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/133">#133</a></li>
103
-
<li>Fix missing documentation for Condition= and Assert directives <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/96">#96</a></li>
104
-
</ul>
105
-
<h3>v0.3.6</h3>
106
-
<ul>
107
-
<li>Add support for Go Land 2022.1<a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/128">#128</a></li>
108
-
</ul>
109
-
<h3>v0.3.5</h3>
110
-
<ul>
111
-
<li>Add support for IntelliJ 2022.1 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/126">#126</a></li>
112
-
</ul>
113
-
<h3>v0.3.4</h3>
114
-
<ul>
115
-
<li>Add support for IntelliJ 2021.3 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/119">#119</a></li>
116
-
<li>Remove support for IntelliJ 2021.1, due to plugin compatibility fixes</li>
117
-
<li>Fix file type issue description <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/106"/>#106</a></li>
<li>Add support for IntelliJ 2021.2 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/111">#111</a></li>
123
-
</ul>
124
-
<h3>v0.3.2</h3>
125
-
<ul>
126
-
<li>Add support for IntelliJ 2021.1 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/107">#107</a></li>"
127
-
</ul>
128
-
<h3>v0.3.1</h3>
129
-
<ul>
130
-
<li>Add support for IntelliJ 2020.3 and systemd v247 <a href="https://github.com/SJrX/systemdUnitFilePlugin/issue-103">#103</a> (drops support for 2020.2 <a href="https://blog.jetbrains.com/platform/2020/09/intellij-project-migrates-to-java-11/">due to Java 11 Upgrade</a>) </li>
131
-
</ul>
132
-
<h3>v0.3.0</h3>
133
-
<ul>
134
-
<li>Add support for IntelliJ 2020.2 (and drops support for anything before IntelliJ 2020.1) <a href="https://github.com/SJrX/systemdUnitFilePlugin/pull/92">#92</a></li>
135
-
<li>Add support for systemd v245 (and maybe a little bit of v246) <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/95">#95</a></li>
<li>Updating syntax highlighting to properly handle comments with line continuations.</li>
173
-
<li>Warning when line continuation character is followed by whitespace</li>
174
-
<li>New inspection for deprecated options</li>
175
-
<h3>v0.1.2</h3>
176
-
<ul>
177
-
<li>Added support for systemd v240 keywords.</li>
178
-
<li>Fixed bug with tab character causing issues with syntax highlighting <a href="https://github.com/SJrX/systemdUnitFilePlugin/issues/51">#51</a>.</li>
SYSTEMD_MESSAGE=$(echo "<li><b>[$SYSTEMD_DATE]</b> Update of systemd unit metadata (<a href='https://github.com/systemd/systemd/commit/$SYSTEMD_COMMIT'>$SYSTEMD_COMMIT</a>)</li></br>")
Adds support for systemd unit files, including the following features:
8
+
Adds support for <a href='https://systemd.io/'>systemd</a> <a href="https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html">unit files</a> which are used to configure (some/most) Linux distributions.
9
+
<br/>
10
+
<br/>
11
+
This plugin adds the following features to the IDE:
9
12
<ul>
10
-
<li>Syntax highlighting for unit files</li>
11
-
<li>Auto-completion for:
12
-
<ul>
13
-
<li>Option names in a section</li>
14
-
<li>Boolean options</li>
15
-
<li>Octal options</li>
16
-
<li>Some other common options (<var>KillMode=</var>, <var>Type=</var>, <var>Restart=</var>)
17
-
</ul>
18
-
</li>
19
-
<li>Inspections:
20
-
<ul>
21
-
<li>Invalid values for boolean options</li>
22
-
<li>Unknown option in section (ignoring those starting with <em>X-</em>)</li>
23
-
<li>Deprecated options</li>
24
-
</ul>
25
-
</li>
13
+
<li>Syntax highlighting for unit files</li>
14
+
<li>Auto-completion for a number of options</li>
15
+
<li>Inspections for some errors such as invalid or unknown or deprecated options</li>
16
+
<li>Quick fixes</li>
17
+
<li>Built-in documentation reference for options</li>
18
+
</ul>
26
19
]]></description>
27
20
28
21
<change-notes><!-- From gradle, this section must be 40 characters long, so here you go -->0123456789012345678901234567890123456789</change-notes>
0 commit comments