diff options
author | ritchie <ritchie@gmx.at> | 2015-11-13 07:20:33 +0100 |
---|---|---|
committer | ritchie <ritchie@gmx.at> | 2015-11-13 07:20:58 +0100 |
commit | 2b3d434d8f056d4284a10b441fe1d6998d96ff3e (patch) | |
tree | fa0bede5a8a2fe148c2b80f3536b36deaf844071 /README.md | |
parent | d26a73b838da8c3966ee7e71a6c9d769cbe9cf60 (diff) | |
download | nanohttpd-2b3d434d8f056d4284a10b441fe1d6998d96ff3e.tar.gz |
add a gradle dependecy description #222
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*. |