aboutsummaryrefslogtreecommitdiff
path: root/knit
diff options
context:
space:
mode:
authorKirill Timofeev <Kirill.Timofeev@jetbrains.com>2017-10-25 14:25:47 +0300
committerRoman Elizarov <elizarov@gmail.com>2017-10-26 16:31:56 +0300
commita5186960157db17f7ab53831f4fa2fdc004cec12 (patch)
treea2c8eec67ba50c1a50d8d2ea6db6729da588e5e4 /knit
parent557668612be79b7778e95b61f9435dd02bd00ff5 (diff)
downloadkotlinx.coroutines-a5186960157db17f7ab53831f4fa2fdc004cec12.tar.gz
Migrate build to gradle
Diffstat (limited to 'knit')
-rw-r--r--knit/README.md5
-rw-r--r--knit/build.gradle20
-rw-r--r--knit/pom.xml47
-rw-r--r--knit/resources/knit.properties4
4 files changed, 24 insertions, 52 deletions
diff --git a/knit/README.md b/knit/README.md
index 48114ec2..f62e548b 100644
--- a/knit/README.md
+++ b/knit/README.md
@@ -8,7 +8,6 @@ It also includes links to the documentation web site into the documents.
## Usage
* In project root directory do:
- * Run `mvn clean compile site`
- * Add `-DskipJekyll` if you have don't Jekyll installed or don't want to actually rebuild documentation web
- site static pages
+ * Run `./gradlew knit`
* Commit updated documents and examples
+
diff --git a/knit/build.gradle b/knit/build.gradle
new file mode 100644
index 00000000..a206c182
--- /dev/null
+++ b/knit/build.gradle
@@ -0,0 +1,20 @@
+apply plugin: "application"
+
+sourceSets {
+ main.kotlin.srcDirs = ['src']
+ main.java.srcDirs = ['src']
+ main.resources.srcDirs = ['resources']
+}
+
+FileTree mdFiles = fileTree(project.rootDir) {
+ include '**/*.md'
+ exclude '**/build/**'
+}
+
+mainClassName = "KnitKt"
+
+run.dependsOn rootProject.getTasksByName("dokka", true)
+run.args = mdFiles
+run.workingDir = project.rootDir
+
+task knit(dependsOn: run)
diff --git a/knit/pom.xml b/knit/pom.xml
deleted file mode 100644
index dec6f766..00000000
--- a/knit/pom.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ Copyright 2016-2017 JetBrains s.r.o.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.jetbrains.kotlinx</groupId>
- <artifactId>kotlinx-coroutines</artifactId>
- <version>0.19.2-SNAPSHOT</version>
- </parent>
-
- <artifactId>knit</artifactId>
- <packaging>jar</packaging>
-
- <build>
- <sourceDirectory>src</sourceDirectory>
- <resources>
- <resource>
- <directory>resources</directory>
- </resource>
- </resources>
- <plugins>
- <!-- do not deploy this module -->
- <plugin>
- <artifactId>maven-deploy-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/knit/resources/knit.properties b/knit/resources/knit.properties
index 1b3f48a8..c829f0f2 100644
--- a/knit/resources/knit.properties
+++ b/knit/resources/knit.properties
@@ -17,5 +17,5 @@
site.root=https://kotlin.github.io/kotlinx.coroutines
module.roots=core integration reactive ui
-module.marker=pom.xml
-module.docs=target/dokka
+module.marker=build.gradle
+module.docs=build/dokka