Skip to content
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
* Improved GLV examples reliability and documentation with step-by-step instructions.
* Added root-level GLV examples in `glv-examples/` directory that use published driver versions for easy out-of-the-box usage, separate from module-level examples that use local development code.
* Bump netty to 4.1.125.Final
* Fixed `empty-sample-secure.groovy` to work with `Compilation.COMPILE_STATIC`

[[release-3-7-4]]
=== TinkerPop 3.7.4 (Release Date: August 1, 2025)
Expand Down
8 changes: 4 additions & 4 deletions gremlin-server/scripts/empty-sample-secure.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@
def addItUp(int x, int y) { x + y }

// an init script that returns a Map allows explicit setting of global bindings.
def globals = [:]
def Map<Object, Object> globals = [:]

// defines a sample LifeCycleHook that prints some output to the Gremlin Server console.
// note that the name of the key in the "global" map is unimportant. As this script,
// runs as part of a sandbox configuration, type-checking is enabled and thus the
// LifeCycleHook type needs to be defined for the "ctx" variable.
globals << [hook : [
globals << ([hook : [
onStartUp: { LifeCycleHook.Context ctx ->
ctx.logger.info("Executed once at startup of Gremlin Server.")
},
onShutDown: { LifeCycleHook.Context ctx ->
ctx.logger.info("Executed once at shutdown of Gremlin Server.")
}
] as LifeCycleHook]
] as LifeCycleHook] as Map<Object, Object>)

// define the default TraversalSource to bind queries to - this one will be named "g".
// ReferenceElementStrategy converts all graph elements (vertices/edges/vertex properties)
Expand All @@ -55,4 +55,4 @@ globals << [hook : [
//
// must use an instance of ReferenceElementStrategy as Groovy shorthands won't work with
// secure script execution.
globals << [g : traversal().withEmbedded(graph).withStrategies(ReferenceElementStrategy.instance())]
globals << ([g : traversal().withEmbedded(graph).withStrategies(ReferenceElementStrategy.instance())] as Map<Object, Object>)
Loading