packages/@jsii/java-runtime/JsiiVersion.t.js (9 lines of code) (raw):
const path = require('path');
const version = require('@jsii/runtime/package.json').version.replace(/\+.+$/, ''); // omit "+build" postfix;
process.stdout.write(`package software.amazon.jsii;
@javax.annotation.Generated(value = "${path.basename(__filename)}", date = "${new Date().toISOString()}")
final class JsiiVersion {
/** The version of the @jsii/runtime this client was tested with **/
static final String JSII_RUNTIME_VERSION = "@jsii/runtime@${version}";
}
`);