From fd1b18b4400c3547aa93a10aa32f73403d89e696 Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 23 Oct 2023 16:58:05 +0300 Subject: [PATCH 1/2] add gradle build example --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index b7b6be3..97a43fe 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,21 @@ If you want to use [jetty](https://www.eclipse.org/jetty/) integration, also add For example of how to setup your project, check out [ngrok-java-demo](https://github.com/ngrok/ngrok-java-demo/blob/main/pom.xml) +## Gradle + +If you use gradle as a build system, you need to add to your build the following: + +```kotlin +plugins { + id("com.google.osdetector").version("1.7.3") +} + +dependencies { + implementation("com.ngrok:ngrok-java:0.4.1") + implementation("com.ngrok:ngrok-java-native:0.4.1:${osdetector.classifier}") +} +``` + # Documentation ## Quickstart From 4f75b046a368f63e964ef7c623edaa445e4ccd6d Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 23 Oct 2023 17:05:52 +0300 Subject: [PATCH 2/2] use common ngrok version --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 97a43fe..6f42ab4 100644 --- a/README.md +++ b/README.md @@ -96,9 +96,11 @@ plugins { id("com.google.osdetector").version("1.7.3") } +var ngrokVersion = "0.4.1" + dependencies { - implementation("com.ngrok:ngrok-java:0.4.1") - implementation("com.ngrok:ngrok-java-native:0.4.1:${osdetector.classifier}") + implementation("com.ngrok:ngrok-java:${ngrokVersion}") + implementation("com.ngrok:ngrok-java-native:${ngrokVersion}:${osdetector.classifier}") } ```