From bd0625bf4cdaaec76aebe4a8ae46968cac05bc53 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sun, 13 Dec 2015 04:14:27 +0400 Subject: [PATCH] Doc updates. --- ten-minutes/index.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ten-minutes/index.html b/ten-minutes/index.html index 0a605e0..4cb2da5 100644 --- a/ten-minutes/index.html +++ b/ten-minutes/index.html @@ -100,9 +100,9 @@ val project = kotlinProject {
 <kobalt-plugin>
     <name>kobalt-line-count</name>
-    <plugins>
+    <plugin-actors>
         <class-name>com.beust.kobalt.plugin.linecount.LineCountPlugin</class-name>
-    </plugins>
+    </plugin-actors>
 </kobalt-plugin>
 
@@ -136,14 +136,14 @@ public class Main : BasePlugin() { $ ./kobaltw uploadJcenter ... ========== kobalt-line-count:uploadJcenter - kobalt-line-count: Found 2 artifacts to upload - All artifacts successfully uploaded - ############# Time to Build: 3590 ms + Found 12 artifacts to upload: + Uploading 12 / 12 |............| +BUILD SUCCESSFUL (15 seconds) -

- If you go to the maven section of your bintray account, you will now see that the new package has two unpublished files. Your new plug-in won't be visible by clients until you publish those files, so let's update our build file to automatically publish files from now on: -

+

+ If you go to the maven section of your bintray account, you will now see that the new package has two unpublished files. Your new plug-in won't be visible by clients until you publish those files, so let's update our build file to automatically publish files from now on: +

 jcenter {
@@ -200,15 +200,14 @@ Created /Users/beust/kotlin/kobalt-line-count/kobaltBuild/libs/kobalt-line-count
 ========== kobalt-line-count:generatePom
  Wrote /Users/beust/kotlin/kobalt-line-count/kobaltBuild/libs/kobalt-line-count-0.2.pom
 ========== kobalt-line-count:uploadJcenter
-kobalt-line-count: Found 2 artifacts to upload
-All artifacts successfully uploaded
-
-Time to Build: 5907 ms
+  Found 12 artifacts to upload:
+    Uploading 12 / 12 |............|
+BUILD SUCCESSFUL (15 seconds)
 
-

- Finally, let's use our plug-in from another project. Since we didn't link this project to JCenter, it's uploaded in the user's maven repository, so we will have to add this maven repository to the build file where we want to use the plug-in. Adjust this line to point to your own maven repo: -

+

+ Finally, let's use our plug-in from another project. Since we didn't link this project to JCenter, it's uploaded in the user's maven repository, so we will have to add this maven repository to the build file where we want to use the plug-in. Adjust this line to point to your own maven repo: +

 val repos = repos("https://dl.bintray.com/cbeust/maven/")
@@ -241,7 +240,8 @@ Found 4972 lines in 65 files
 

- And that's it! You can now iterate on your plug-in and upload it with additional ./kobaltw uploadJcenter. This plug-in is available on github. + And that's it! You can now iterate on your plug-in and upload it with additional ./kobaltw uploadJcenter. This plug-in is available on github. Note that the plug-in in the repo + illustrates a few other concepts not discussed here, such as adding dynamic tasks, so I encourage you take a look at its source.

Initialization