From b166d2ec2418f184ad31159c4307ae858193871f Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Fri, 10 Jul 2015 18:57:17 +0300 Subject: Gradle plugin getting started --- README.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 68d82aab..61849bda 100644 --- a/README.md +++ b/README.md @@ -153,4 +153,38 @@ Configuring source links mapping -``` \ No newline at end of file +``` + +### Using Gradle plugin + +```groovy +buildscript { + repositories { + mavenLocal() + jcenter() + } + dependencies { + classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.1-SNAPSHOT" + } +} + +apply plugin: 'org.jetbrains.dokka' +``` + +To configure plugin use dokka lambda in the root scope. For example: + +```groovy +dokka { + linkMapping { + dir = "src/main/kotlin" + url = "https://github.com/cy6erGn0m/vertx3-lang-kotlin/blob/master/src/main/kotlin" + suffix = "#L" + } +} +``` + +To get it generated use gradle `dokka` task + +```bash +./gradlew dokka +``` -- cgit