Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
<oracle.groupId>com.oracle.database.jdbc</oracle.groupId>
<oracle.artifactId>ojdbc11</oracle.artifactId>
<oracle.version>21.20.0.0</oracle.version>

<!-- npm registries configuration -->
<xwiki.npm.snapshot.registry>https://nexus-snapshots.xwiki.org/repository/npmhosted/</xwiki.npm.snapshot.registry>
<xwiki.npm.release.registry>https://registry.npmjs.org</xwiki.npm.release.registry>
</properties>
<scm>
<url>https://github.com/${xwiki.github.owner}/${xwiki.github.repository}/tree/master/</url>
Expand Down
39 changes: 39 additions & 0 deletions setpackageversion.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an utility script to help me test version changes. I'm going to remove it from the PR.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
function set_packages_version() {
if [ -z "$1" ]; then
echo "Missing version parameter" >&2
exit 1
fi

version="$1"
current_directory="$(dirname "$(readlink -f "$0")")/.."


find "$current_directory" -type d -name "node_modules" -prune -o -name "package.json" -print | \
grep -v "^$current_directory/package.json$" | \
while IFS= read -r pkg_path; do

## private or unnamed packages are skipped
is_skipped=$(jq -r '.private' "$pkg_path")

if [ "$is_skipped" = "true" ]; then
continue
fi

# Create a temporary file in case of issue during the version patch
temp_file=$(mktemp)

# Update the version with jq on the temp file, and replace the original file with the patch version if no
# problem was encountered.
if ! jq ".version = \"$version\"" "$pkg_path" > "$temp_file"; then
relative_pkg_path=$(realpath --relative-to="$current_directory" "$pkg_path")
echo "Failed to update $relative_pkg_path: jq error" >&2
rm -f "$temp_file"
continue
fi

mv "$temp_file" "$pkg_path"
done
}

set_packages_version 18.0.0-SNAPSHOT
22 changes: 22 additions & 0 deletions xwiki-platform-core/xwiki-platform-node/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,30 @@
<installDirectory>${basedir}/target</installDirectory>
</configuration>
</execution>
<execution>
<phase>deploy</phase>
<goals>
<goal>pnpm</goal>
</goals>
<configuration>
<arguments>run deploy -- ${xwiki.npm.snapshot.registry} ${xwiki.npm.release.registry} ${basedir}/src/main/node</arguments>
<workingDirectory>${basedir}/src/main/node</workingDirectory>
<installDirectory>${basedir}/target</installDirectory>
<environmentVariables>
<NPM_SNAPSHOT_REGISTRY>${xwiki.npm.snapshot.registry}</NPM_SNAPSHOT_REGISTRY>
<NPM_RELEASE_REGISTRY>${xwiki.npm.release.registry}</NPM_RELEASE_REGISTRY>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Later, the versions will change with xwiki/xwiki-dev-tools#16

"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-attachments-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-attachments-default",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-authentication-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-backend-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-collaboration-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-configuration-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-document-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-fn-utils",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-icons",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"description": "Provide UI components to display icons.",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-link-suggest-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-macros-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-macros-ast-react-jsx",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-model-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-model-reference-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-model-remote-url-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-navigation-tree-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-uniast-api",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-uniast-markdown",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-dsapi",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-editors-blocknote-headless",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xwiki/platform-editors-blocknote-react",
"version": "17.10.0",
"version": "18.0.0-SNAPSHOT",
"license": "LGPL 2.1",
"author": "XWiki Org Community <[email protected]>",
"homepage": "https://xwiki.org/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "module",
"scripts": {
"build": "nx run-many -t build -p \"xwiki-platform-core/xwiki-platform-node/src/main/node/*/**\"",
"deploy": "node scripts/deploy.js",
"lint": "nx run-many -t lint -p \"xwiki-platform-core/xwiki-platform-node/src/main/node/*/**\"",
"test:unit": "nx run-many -t test -p \"xwiki-platform-core/xwiki-platform-node/src/main/node/*/**\""
},
Expand Down
Loading