This is an automated email from the ASF dual-hosted git repository. Cole-Greer pushed a commit to branch version-propagation in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit d842b60fd48e92b010a09d1fa78f3fcddc8424cf Author: Cole Greer <[email protected]> AuthorDate: Wed Jul 22 12:13:18 2026 -0700 cleanup --- CHANGELOG.asciidoc | 1 - docs/src/dev/developer/release.asciidoc | 21 ++++++++------------- gremlin-javascript/pom.xml | 14 -------------- .../main/javascript/gremlin-javascript/lib/utils.js | 2 +- 4 files changed, 9 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index b1ff3c6f69..5e54133fcc 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -31,7 +31,6 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima * Added `FailResponseException` to `gremlin-driver` which is thrown `fail()` step is triggered on the server making it more consistent with embedded behavior. * Fixed conjoin has incorrect null handling. * Expanded `gremlin-python` CI matrix to test against Python 3.9, 3.10, 3.11, 3.12, and 3.13. -* Automated version propagation to Python (`__version__`), JavaScript (`package-lock.json`), and Gremlint (`package-lock.json`) during the Maven build. * Add Node 26 support for `gremlin-javascript` and `gremlint`. [[release-3-7-6]] diff --git a/docs/src/dev/developer/release.asciidoc b/docs/src/dev/developer/release.asciidoc index ca29412697..0a72ace472 100644 --- a/docs/src/dev/developer/release.asciidoc +++ b/docs/src/dev/developer/release.asciidoc @@ -68,11 +68,6 @@ mvn deploy -pl gremlin-javascript -Dnpm` Python, .NET and Javascript do not use the snapshot model the JVM does, however, the build is smart in that it will dynamically generate a development version number for the GLV artifacts when "-SNAPSHOT" is in the `pom.xml`. -NOTE: Running `mvn clean install -DskipTests` automatically propagates the Maven version to all GLV artifacts with the -correct per-language suffix conventions: Python uses `.devN` (e.g. `3.7.7.dev1`), JavaScript/npm uses `-alphaN` (e.g. -`3.7.7-alpha1`), and .NET/Go use the raw Maven version (e.g. `3.7.7-SNAPSHOT`). This includes `package-lock.json` in -both `gremlin-javascript` and `gremlint`, and `__version__` in `gremlin-python`. No manual version edits are required. - If you wish to verify that `mvn deploy` works before doing it officially then: * For Python, use the `testpypi` test environment by updating the `gremlin-python/pom.xml`. @@ -155,9 +150,9 @@ deployment. . `bin/publish-docs.sh <username>` - note that under a release candidate the documentation is published as SNAPSHOT . `mvn versions:set -DnewVersion=xx.yy.zz -DgenerateBackupPoms=false` to update the project files to reference a non-SNAPSHOT version . `mvn clean install -DskipTests` to update GLV versions -.. Verify that `__version__` in `gremlin-python/src/main/python/gremlin_python/__init__.py` was updated automatically by the build +.. Review `__init__.py` in `gremlin-python` .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` -.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` (both are now updated automatically) +.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` . `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-standalone/bin/gremlin.sh gremlin.sh; popd` . `git diff` and review the updated files . `git commit -a -m "TinkerPop xx.yy.zz release"` and `git push` @@ -165,9 +160,9 @@ deployment. . `mvn clean install` . `mvn versions:set -DnewVersion=xx.yy.zz-SNAPSHOT -DgenerateBackupPoms=false` to go back to SNAPSHOT . `mvn clean install -DskipTests` to update GLV versions -.. Verify that `__version__` in `gremlin-python/src/main/python/gremlin_python/__init__.py` was updated automatically by the build +.. Review `__init__.py` in `gremlin-python` .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` -.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` (both are now updated automatically) +.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` . `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-SNAPSHOT-standalone/bin/gremlin.sh gremlin.sh; popd` . `git commit -a -m "Returned to xx.yy.zz-SNAPSHOT"` and `git push` . Announce the release candidate to `dev` mailing list and await feedback @@ -216,9 +211,9 @@ current release was under development as this new release will have those change .. Update the link to `CHANGELOG.asciidoc` - this link may already be correct but will not exist until the repository is tagged. . `mvn versions:set -DnewVersion=xx.yy.zz -DgenerateBackupPoms=false` to update project files to reference the non-SNAPSHOT version . `mvn clean install -DskipTests` to update GLV versions -.. Verify that `__version__` in `gremlin-python/src/main/python/gremlin_python/__init__.py` was updated automatically by the build +.. Review `__init__.py` in `gremlin-python` .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` -.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` (both are now updated automatically) +.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` . `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-standalone/bin/gremlin.sh gremlin.sh; popd` . `git diff` and review the updated files . `mvn clean install` - need to build first so that the right version of the console is used with `bin/publish-docs.sh` @@ -325,9 +320,9 @@ the help of a PMC member for those steps. .. Make the appropriate branching changes as required by the release and bump the version to `SNAPSHOT` with `mvn versions:set -DnewVersion=xx.yy.zz-SNAPSHOT -DgenerateBackupPoms=false`. . `mvn clean install -DskipTests` to update GLV versions -.. Verify that `__version__` in `gremlin-python/src/main/python/gremlin_python/__init__.py` was updated automatically by the build +.. Review `__init__.py` in `gremlin-python` .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` -.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` (both are now updated automatically) +.. Review `package.json` and `package-lock.json` in `gremlin-javascript` and in `gremlint` .. `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-SNAPSHOT-standalone/bin/gremlin.sh gremlin.sh; popd` .. Update CHANGELOG and upgrade docs to have the appropriate headers for the next version. .. `mvn clean install -DskipTests` - need to build first so that the right version of the console is used with `bin/publish-docs.sh` diff --git a/gremlin-javascript/pom.xml b/gremlin-javascript/pom.xml index d36ae807c5..37a1421e92 100644 --- a/gremlin-javascript/pom.xml +++ b/gremlin-javascript/pom.xml @@ -232,20 +232,6 @@ limitations under the License. <skip>true</skip> </configuration> </plugin> - <plugin> - <groupId>com.google.code.maven-replacer-plugin</groupId> - <artifactId>replacer</artifactId> - <configuration> - <skip>true</skip> - <file>src/main/javascript/gremlin-javascript/lib/utils.js</file> - <replacements> - <replacement> - <token>gremlinVersion = '.*'</token> - <value>gremlinVersion = '${project.version}'</value> - </replacement> - </replacements> - </configuration> - </plugin> </plugins> </build> <profiles> diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/utils.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/utils.js index 686fe53e9d..4c0cc654b8 100644 --- a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/utils.js +++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/utils.js @@ -25,7 +25,7 @@ const uuid = require('uuid'); -const gremlinVersion = '3.7.7-alpha1'; // DO NOT MODIFY - Configured automatically by Maven build +const gremlinVersion = '3.7.7-alpha1'; // DO NOT MODIFY - Configured automatically by Maven exports.toLong = function toLong(value) { return new Long(value);
