Skip to content

Commit

Permalink
Merge pull request #33 from ngrok/nikolay/gradle-example
Browse files Browse the repository at this point in the history
add gradle build example
  • Loading branch information
nikolay-ngrok authored Oct 23, 2023
2 parents 48bb19d + 4f75b04 commit 5830981
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,23 @@ 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")
}

var ngrokVersion = "0.4.1"

dependencies {
implementation("com.ngrok:ngrok-java:${ngrokVersion}")
implementation("com.ngrok:ngrok-java-native:${ngrokVersion}:${osdetector.classifier}")
}
```

# Documentation

## Quickstart
Expand Down

0 comments on commit 5830981

Please sign in to comment.