blob: 0410d5d268997c6add125112dce1ad90158844f4 [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
2 * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
Kirill Timofeeva5186962017-10-25 14:25:47 +03005apply plugin: "application"
6
7sourceSets {
8 main.kotlin.srcDirs = ['src']
9 main.java.srcDirs = ['src']
10 main.resources.srcDirs = ['resources']
11}
12
13FileTree mdFiles = fileTree(project.rootDir) {
14 include '**/*.md'
15 exclude '**/build/**'
Roman Elizarovcbb602d2017-12-23 14:24:26 +030016 exclude '**/.gradle/**'
17 exclude '**/node_modules/**'
Kirill Timofeeva5186962017-10-25 14:25:47 +030018}
19
20mainClassName = "KnitKt"
21
22run.dependsOn rootProject.getTasksByName("dokka", true)
23run.args = mdFiles
24run.workingDir = project.rootDir
25
26task knit(dependsOn: run)