Building Gradle projects
You can use the Visual Studio Code editor to build the entire Gradle project Jar file and run the Jar.
Procedure
- In the Visual Studio Code editor, open the AgentApplication from src\main\java\manager\model
-
Run the following command from agent-sdk-managed-implementation location
in the terminal:
gradle build (if you have configured Gradle globally in your system) (or) ./gradlew buildBuild Successful message appears and a sample-managed-sdk-version .jar is created at build\libs.
-
Use the following command from agent-sdk-managed-implementation location
in the terminal to run the Jar directly:
java -jar ./build/libs/sample-managed-sdk<version>.jarWhere, /build/libs/sample-managed-sdk-<version>.jar is the path where the Jar is created.
The agent application starts. You can verify whether the runtime name that is specified in the application.properties file is listed on the Runtimes tab in the Catalog page in the UI.
You can either run the Jar directly or deploy it in Docker and run to start the agent application.