diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -31,7 +31,7 @@ Edit `pom.xml`, and add this between \<dependencies\>: <artifactId>nanohttpd</artifactId> <version>2.2.0-SNAPSHOT</version> </dependency> - + Edit `src/main/java/com/example/App.java` and replace it with: ```java package com.example; @@ -162,6 +162,20 @@ The coordinates for your development environment should correspond to these. Whe Next it depends what you are useing nanohttpd for, there are tree main usages. +## Gradle dependencies + +In gradle you can use nano http the same way because gradle accesses the same central repository: + + dependencies { + runtime( + [group: 'org.nanohttpd', name: 'nanohttpd', version: 'CURRENT_VERSION'], + ) + } + +(Replace `CURRENT_VERSION` with whatever is reported latest at <http://nanohttpd.org/>.) + +Just replace the name with the artifact id of the module you want to use and gradle will find it for you. + ### Develop your own specialized HTTP service For a specialized HTTP (HTTPS) service you can use the module with artifactId *nanohttpd*. |