Package: th2-grpc-act-template
th2 gRPC act template library (4.2.0)This is the template project for creating custom gRPC act libraries. It contains proto messages andActservice that
are usedth2 act template.
Seeact_template.protofile for
details.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to specified
repositories.How to transform the templateCreate a directory with the same name as the project name (use underscores instead of dashes) undersrc/main/protodirectory (remove other files and directories if they exist).Place your custom.protofiles in the created directory. Pay attention to both thepackagespecifier and to
theimportstatements.Editrelease_versionandvcs_urlproperties ingradle.propertiesfile.EditrootProject.namevariable insettings.gradlefile. This will be the name of the Java package.Editpackage_info.jsonfile in order to specify its name and its version for Python package (create the file in
case it's absent).Edit parameters ofsetup.pyinsetupfunction invocation such as:author,author_email,url. Do not edit
the other's parameters.EditREADME.mdfile according to the new project.Note that the name of the created directory undersrc/main/protodirectory is used in Python (it's a package name).How to maintain a projectPerform the necessary changes.Update the package version of Java ingradle.propertiesfile.Update the package version of Python inpackage_info.jsonfile.Commit everything.How to run projectJavaIf you wish to manually create and publish a package for Java, run the following command:gradle --no-daemon clean build publish artifactoryPublish \
       -Purl=${URL} \ 
       -Puser=${USER} \
       -Ppassword=${PASSWORD}URL,USERandPASSWORDare parameters for publishing.PythonIf you wish to manually create and publish a package for Python:Generate services withGradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles and publish everything usingtwine:pip install -r requirements.txt
pip install twine
python setup.py generate
python setup.py sdist
twine upload --repository-url ${PYPI_REPOSITORY_URL} --username ${PYPI_USER} --password ${PYPI_PASSWORD} dist/*PYPI_REPOSITORY_URL,PYPI_USERandPYPI_PASSWORDare parameters for publishing.Release notes4.2.0Added rpc to send messages directly to component avoiding codec.4.1.0Update toth2-grpc-commonversion4.3.0Update toth2-bomversion4.4.0Update toth2-grpc-service-genratorversion3.4.04.0.0Update toth2-grpc-commonversion4.0.0Marked deprecated fields asreserved3.12.0grpc version bump to1.48.2protobuf version bump to3.21.7serviceGenerator version bump to3.3.1Add dependency check pipeline step.Add dev-release workflow.3.11.0AddmultiSendMessagemethod for sending several messages at once3.10.0AddplaceOrderCancelReplaceRequestmethod for sendingOrderCancelReplaceRequestRenameplaceCancelFIXtoplaceOrderCancelRequest3.9.0Update toth2-grpc-commonversion3.11.13.8.0Update toth2-grpc-commonversion3.9.03.7.0Add new method for sendingSecurityStatusRequest3.6.0Add new method for sendingOrderCancelRequest3.5.0Update toth2-grpc-commonversion3.8.03.4.0Update toth2-grpc-commonversion3.7.03.3.0Update toth2-grpc-commonversion3.4.03.2.0Implement stubs creation for Python