Skip to content

Commit 2023ab4

Browse files
committed
Upgrade templates to align with Moodle PHP standards and update dependencies to Gradle 9.2.1.
1 parent d98425c commit 2023ab4

16 files changed

Lines changed: 168 additions & 53 deletions

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
1414
- On project open, construct `InspectionProfileImpl` from bundled `resources/inspectionProfiles/Moodle.xml` and set it as the project profile via `ProjectInspectionProfileManager#setCurrentProfile`.
1515

1616
### Changed
17-
17+
- Fix Moodle file creation documentation according to code standards.
1818
- Dependency updates and build tooling:
1919
- IntelliJ Platform Gradle plugin: 2.7.2 → 2.9.0.
2020
- Kotlin JVM: 2.2.10 → 2.2.20.

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ pluginGroup = il.co.sysbind.intellij.moodledev
44
pluginName = moodle-dev
55
pluginRepositoryUrl = https://github.com/SysBind/moodle-dev
66
# SemVer format -> https://semver.org
7-
pluginVersion = 2.2.0
7+
pluginVersion = 2.2.1
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
10-
pluginSinceBuild = 243
10+
pluginSinceBuild = 252
1111

1212
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
1313
platformType = PS
14-
platformVersion = 2025.2
14+
platformVersion = 2025.3
1515

1616
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1717
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
18-
platformPlugins = com.dmarcotte.handlebars:252.23892.201
18+
platformPlugins = com.dmarcotte.handlebars:253.28294.218
1919
# Example: platformBundledPlugins = com.intellij.java
2020
platformBundledPlugins = com.jetbrains.php, JavaScript, org.jetbrains.plugins.less, org.jetbrains.plugins.sass
2121
# Example: platformBundledModules = intellij.spellchecker
2222
platformBundledModules =
2323

2424
# Gradle Releases -> https://github.com/gradle/gradle/releases
25-
gradleVersion = 9.0.0
25+
gradleVersion = 9.2.1
2626

2727
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2828
kotlin.stdlib.default.dependency = false

gradle/wrapper/gradle-wrapper.jar

176 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<idea-plugin>
33
<id>il.co.sysbind.intellij.moodledev</id>
44
<name>Moodle Development</name>
5-
<version>2.2.0</version>
5+
<version>2.2.1</version>
66
<vendor email="support@sysbind.co.il" url="https://sysbin.co.il">SysBind</vendor>
77
<description><![CDATA[
88
<h1>Plugin For Moodle Developers</h1>

src/main/resources/fileTemplates/includes/Moodle PHP File Header.php.ft

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,3 @@
1212
//
1313
// You should have received a copy of the GNU General Public License
1414
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
15-
16-
/**
17-
* ${PLUGIN_NAME} ${FILE_NAME} description here.
18-
*
19-
* @package ${PLUGIN_NAME}
20-
* @copyright ${YEAR} ${USER_NAME} <${USER_EMAIL}>
21-
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22-
*/
Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +0,0 @@
1-
<html lang="en">
2-
<body>
3-
<p face="verdana" size="-1">
4-
5-
</p>
6-
7-
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
8-
<tr>
9-
<td colspan="3"><font face="verdana" size="-1">Template's predefined variables:</font></td>
10-
</tr>
11-
<tr>
12-
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PLUGINNAME}</b></font></nobr></td>
13-
<td width="10"><font face="verdana" size="-1">The Moodle Plugin Name</font></td>
14-
<td width="100%" valign="top"><font face="verdana" size="-1">local_pluginname</font></td>
15-
</tr>
16-
<tr>
17-
<td valign="top"><nobr><font face="verdana" size="-2"><b>${YEAR}</b></font></nobr></td>
18-
<td width="10"><font face="verdana" size="-1">Current year</font></td>
19-
<td width="100%" valign="top"><font face="verdana" size="-1"></font></td>
20-
</tr>
21-
<tr>
22-
<td valign="top"><nobr><font face="verdana" size="-2"><b>${USEREMAIL}</b></font></nobr></td>
23-
<td width="10"><font face="verdana" size="-1">Current user Email</font></td>
24-
<td width="100%" valign="top"><font face="verdana" size="-1"></font></td>
25-
</tr>
26-
<tr>
27-
<td valign="top"><nobr><font face="verdana" size="-2"><b>${USER}</b></font></nobr></td>
28-
<td width="10"><font face="verdana" size="-1">Current user system login name</font></td>
29-
<td width="100%" valign="top"><font face="verdana" size="-1"></font></td>
30-
</tr>
31-
</table>
32-
</body>
33-
</html>

src/main/resources/fileTemplates/internal/Moodle PHP Class.php.ft

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33

44
#if (${NAMESPACE})
55
namespace ${NAMESPACE};
6-
76
#end
7+
8+
/**
9+
* ${PLUGIN_NAME} ${FILE_NAME} description here.
10+
*
11+
* @package ${PLUGIN_NAME}
12+
* @copyright ${YEAR} ${USER_NAME} <${USER_EMAIL}>
13+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
14+
*/
815
class ${NAME} {
916

1017
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<html lang="en">
2+
<body>
3+
<p face="verdana" size="-1">
4+
5+
</p>
6+
7+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
8+
<tr>
9+
<td colspan="3"><font face="verdana" size="-1">Template's predefined variables:</font></td>
10+
</tr>
11+
<tr>
12+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PLUGINNAME}</b></font></nobr></td>
13+
<td width="10"><font face="verdana" size="-1">The Moodle Plugin Name</font></td>
14+
<td width="100%" valign="top"><font face="verdana" size="-1">local_pluginname</font></td>
15+
</tr>
16+
<tr>
17+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${YEAR}</b></font></nobr></td>
18+
<td width="10"><font face="verdana" size="-1">Current year</font></td>
19+
<td width="100%" valign="top"><font face="verdana" size="-1"></font></td>
20+
</tr>
21+
<tr>
22+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${USEREMAIL}</b></font></nobr></td>
23+
<td width="10"><font face="verdana" size="-1">Current user Email</font></td>
24+
<td width="100%" valign="top"><font face="verdana" size="-1"></font></td>
25+
</tr>
26+
<tr>
27+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${USER}</b></font></nobr></td>
28+
<td width="10"><font face="verdana" size="-1">Current user system login name</font></td>
29+
<td width="100%" valign="top"><font face="verdana" size="-1"></font></td>
30+
</tr>
31+
</table>
32+
</body>
33+
</html>

src/main/resources/fileTemplates/internal/Moodle PHP Enum.php.ft

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
namespace ${NAMESPACE};
66

77
#end
8+
9+
/**
10+
* ${PLUGIN_NAME} ${FILE_NAME} description here.
11+
*
12+
* @package ${PLUGIN_NAME}
13+
* @copyright ${YEAR} ${USER_NAME} <${USER_EMAIL}>
14+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
15+
*/
816
enum ${NAME}#if (${BACKED_TYPE}) : ${BACKED_TYPE} #end{
917

1018
}

0 commit comments

Comments
 (0)