Skip to content

Commit 17fc75c

Browse files
committed
Modernize package.xml
1 parent 8913079 commit 17fc75c

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/package/package-xml.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ A list of packages including their version required for this package to work.
9595
Example:
9696

9797
```xml
98-
<requiredpackage minversion="2.0.0" file="requirements/com.woltlab.wcf.tar">com.woltlab.wcf</requiredpackage>
98+
<requiredpackage minversion="2.7.5" file="requirements/com.example.foo.tar">com.example.foo</requiredpackage>
9999
```
100100

101101
The attribute `minversion` must be a valid version number as described in [`<version>`](#version).
@@ -110,7 +110,7 @@ A list of optional packages which can be selected by the user at the very end of
110110
Example:
111111

112112
```xml
113-
<optionalpackage file="optionals/com.woltlab.wcf.moderatedUserGroup.tar">com.woltlab.wcf.moderatedUserGroup</optionalpackage>
113+
<optionalpackage file="optionals/com.example.bar.tar">com.example.bar</optionalpackage>
114114
```
115115

116116
The `file` attribute specifies the location of the optional package's archive relative to the `package.xml`.
@@ -124,10 +124,10 @@ List of packages which conflict with this package. It is not possible to install
124124
Example:
125125

126126
```xml
127-
<excludedpackage version="3.1.0 Alpha 1">com.woltlab.wcf</excludedpackage>
127+
<excludedpackage version="6.0.0 Alpha 1">com.woltlab.wcf</excludedpackage>
128128
```
129129

130-
The attribute `version` must be a valid version number as described in the [\<version\>](#version) section. In the example above it will be impossible to install this package in WoltLab Suite Core 3.1.0 Alpha 1 or higher.
130+
The attribute `version` must be a valid version number as described in the [\<version\>](#version) section. In the example above it will be impossible to install this package in WoltLab Suite Core 6.0.0 Alpha 1 or higher.
131131

132132
### `<compatibility>`
133133
!!! info "Available since WoltLab Suite 3.1"

snippets/package/package.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<packagename>Simple Package</packagename>
55
<packagedescription>A simple package to demonstrate the package system of WoltLab Suite Core</packagedescription>
66
<version>1.0.0</version>
7-
<date>2016-12-18</date>
7+
<date>2022-01-17</date>
88
</packageinformation>
99

1010
<authorinformation>
@@ -13,7 +13,7 @@
1313
</authorinformation>
1414

1515
<requiredpackages>
16-
<requiredpackage minversion="3.0.0">com.woltlab.wcf</requiredpackage>
16+
<requiredpackage minversion="5.4.10">com.woltlab.wcf</requiredpackage>
1717
</requiredpackages>
1818

1919
<excludedpackages>
@@ -24,4 +24,4 @@
2424
<instruction type="file" />
2525
<instruction type="template">templates.tar</instruction>
2626
</instructions>
27-
</package>
27+
</package>

snippets/tutorial/basic-app/package.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<packagename>Example App</packagename>
55
<packagedescription>A very basic example of an app.</packagedescription>
66
<isapplication>1</isapplication>
7-
<version>3.1.0</version>
8-
<date>2018-03-29</date>
7+
<version>5.4.0</version>
8+
<date>2022-01-17</date>
99
</packageinformation>
1010

1111
<authorinformation>
@@ -14,12 +14,12 @@
1414
</authorinformation>
1515

1616
<requiredpackages>
17-
<requiredpackage minversion="3.1.0">com.woltlab.wcf</requiredpackage>
17+
<requiredpackage minversion="5.4.10">com.woltlab.wcf</requiredpackage>
1818
</requiredpackages>
1919

20-
<compatibility>
21-
<api version="2018" />
22-
</compatibility>
20+
<excludedpackages>
21+
<excludedpackage version="6.0.0 Alpha 1">com.woltlab.wcf</excludedpackage>
22+
</excludedpackages>
2323

2424
<instructions type="install">
2525
<instruction type="file" />

0 commit comments

Comments
 (0)