This is the template project for creating custom gRPC act libraries. It contains proto messages and Act service that
are used th2 act template.
See act_template.proto file for
details.
Tool generates code from .proto files and uploads built packages (.proto files and generated code) to specified
repositories.
- Create a directory with the same name as the project name (use underscores instead of dashes) under
src/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. - Edit
release_versionandvcs_urlproperties ingradle.propertiesfile. - Edit
rootProject.namevariable insettings.gradlefile. This will be the name of the Java package. - Edit
package_info.jsonfile in order to specify its name and its version for Python package (create the file in case it's absent). - Edit parameters of
setup.pyinsetupfunction invocation such as:author,author_email,url. Do not edit the other's parameters. - Edit
README.mdfile according to the new project.
Note that the name of the created directory under src/main/proto directory is used in Python (it's a package name).
- Perform the necessary changes.
- Update the package version of Java in
gradle.propertiesfile. - Update the package version of Python in
package_info.jsonfile. - Commit everything.
If 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, USER and PASSWORD are parameters for publishing.
If you wish to manually create and publish a package for Python:
- Generate services with
Gradle:You can find the generated files by following path:gradle --no-daemon clean generateProtosrc/gen/main/services/python - Generate 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.
- Migrated from
pkg_resourcestoimportlibfor building python package. - Updated:
- th2 gradle plugin:
0.3.14(bom:4.14.3) - th2-grpc-common:
4.7.5
- th2 gradle plugin:
- Migrated to range python dependencies
- Updated:
- th2 gradle plugin:
0.3.8(bom:4.14.1) - th2-grpc-common:
4.7.2
- th2 gradle plugin:
- Migrated to th2 gradle plugin:
0.3.4(bom:4.13.1) - Updated:
- th2-grpc-common:
4.7.1 - mypy-protobuf ~=
3.6
- th2-grpc-common:
- Added rpc to send messages directly to component avoiding codec.
- Update to
th2-grpc-commonversion4.3.0 - Update to
th2-bomversion4.4.0 - Update to
th2-grpc-service-genratorversion3.4.0
- Update to
th2-grpc-commonversion4.0.0 - Marked deprecated fields as
reserved
- grpc version bump to
1.48.2 - protobuf version bump to
3.21.7 - serviceGenerator version bump to
3.3.1 - Add dependency check pipeline step.
- Add dev-release workflow.
- Add
multiSendMessagemethod for sending several messages at once
- Add
placeOrderCancelReplaceRequestmethod for sendingOrderCancelReplaceRequest - Rename
placeCancelFIXtoplaceOrderCancelRequest
- Update to
th2-grpc-commonversion3.11.1
- Update to
th2-grpc-commonversion3.9.0
- Add new method for sending
SecurityStatusRequest
- Add new method for sending
OrderCancelRequest
- Update to
th2-grpc-commonversion3.8.0
- Update to
th2-grpc-commonversion3.7.0
- Update to
th2-grpc-commonversion3.4.0
- Implement stubs creation for Python