From 31c41362d54554c1a03922dc4c0051575fcb1709 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 20 Jan 2016 15:59:05 -0800 Subject: [PATCH 1/9] Fixed typo. --- getting-started/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getting-started/index.html b/getting-started/index.html index b3ae474..f5f6e6f 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -127,7 +127,7 @@ val p = kotlinProject {

4. Sync your build file

- If you're using Intellij IDEA, make sure you've installed the Kobalt plugin and then go to Kobalt -> Sync Build File. This will download dependencies in a way that IDEA understand so you no loger get errors. + If you're using Intellij IDEA, make sure you've installed the Kobalt plugin and then go to Kobalt -> Sync Build File. This will download dependencies in a way that IDEA understand so you no longer get errors.

5. Next steps

@@ -154,4 +154,4 @@ val p = kotlinProject { - \ No newline at end of file + From 860fce4aa8af82e404754eb713462218702270b3 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 9 Jul 2016 10:21:13 -0700 Subject: [PATCH 2/9] Updated TestNG dependency to always pick the latest version. --- documentation/index.html | 4 ++-- home/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/index.html b/documentation/index.html index ab9d044..29d0bc3 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -205,7 +205,7 @@ dependencies { } dependenciesTest { - compile("org.testng:testng:6.9.5") + compile("org.testng:testng:") }

@@ -441,7 +441,7 @@ Here are the options that you can pass to ./kobaltw: $ ./kobaltw --checkVersions New versions found: com.beust:klaxon:0.14 - org.testng:testng:6.9.5 + org.testng:testng:6.9.12 diff --git a/home/index.html b/home/index.html index eef955f..5dbb999 100644 --- a/home/index.html +++ b/home/index.html @@ -116,7 +116,7 @@ val jcommander = javaProject { version = "1.52" dependenciesTest { - compile("org.testng:testng:6.9.5") + compile("org.testng:testng:") } assemble { From 748dcf143958ece464e36c642c4b6f90a2bfc57a Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 9 Jul 2016 22:03:08 -0700 Subject: [PATCH 3/9] Fixed mkdir command to match class-name declaration. --- ten-minutes/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ten-minutes/index.html b/ten-minutes/index.html index f49cee0..b321687 100644 --- a/ten-minutes/index.html +++ b/ten-minutes/index.html @@ -74,7 +74,7 @@

 $ mkdir linecount
 $ cd linecount
-$ mkdir -p src/main/kotlin/com/beust/plugin/linecount
+$ mkdir -p src/main/kotlin/com/beust/kobalt/plugin/linecount
 $ $KOBALT_HOME/kobaltw --init kotlin
 
From fe36cbe93bfe73c588e16d59825a3476fbd8b666 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 11 Jul 2016 23:00:45 -0800 Subject: [PATCH 4/9] Document the new pom implementation. --- plug-ins/index.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/plug-ins/index.html b/plug-ins/index.html index fc29f04..93c8040 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -530,6 +530,41 @@ $ ./kobaltw uploadBintray All artifacts successfully uploaded +

Configuring your POM file

+

+ When you upload your package to Bintray or JCenter in Maven form, Kobalt will create a default + POM file for you. You can configure it with the pom{} directive in your project. + Here is an example: +

+ +
+import org.apache.maven.model.*
+
+val myProject = project {
+    pom = Model().apply {
+        name = project.name
+        licenses = listOf(License().apply {
+            name = "Apache 2.0"
+            url = "http://www.apache .org/licenses/LICENSE-2.0"
+        })
+        scm = Scm().apply {
+            url = "http://github.com/cbeust/kobalt"
+            connection = "https://github.com/cbeust/kobalt.git"
+            developerConnection = "git@github.com:cbeust/kobalt.git"
+        }
+        developers = listOf(Developer().apply {
+            name = "Cedric Beust"
+            email = "cedric@beust.com"
+        })
+    }
+
+
+ +

+ Note that the classes used in this snippet (Model, License, etc...) are + the actual Apache Maven class, so you have access to the full POM model. +

+

Dokka

From ff7dd30b88ecdf529335bc72f47908a1ad8d0155 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 11 Jul 2016 23:07:08 -0800 Subject: [PATCH 5/9] Add description and url. --- plug-ins/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plug-ins/index.html b/plug-ins/index.html index 93c8040..b9c2ba7 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -540,9 +540,11 @@ $ ./kobaltw uploadBintray

 import org.apache.maven.model.*
 
-val myProject = project {
+val kobalt = project {
     pom = Model().apply {
         name = project.name
+        description = "A build system in Kotlin"
+        url = "http://beust.com/kobalt"
         licenses = listOf(License().apply {
             name = "Apache 2.0"
             url = "http://www.apache .org/licenses/LICENSE-2.0"

From e45312b92315cfd4662ca565928213d3a45d1db6 Mon Sep 17 00:00:00 2001
From: Cedric Beust 
Date: Mon, 11 Jul 2016 23:15:52 -0800
Subject: [PATCH 6/9] Error.

---
 ten-minutes/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ten-minutes/index.html b/ten-minutes/index.html
index b321687..0589c60 100644
--- a/ten-minutes/index.html
+++ b/ten-minutes/index.html
@@ -229,7 +229,7 @@ BUILD SUCCESSFUL (15 seconds)
 
 
 val repos = repos("https://dl.bintray.com/cbeust/maven/")
-val plugins = plugins("com.beust.kobalt:kobalt-line-count:0.2")
+val plugins = plugins("com.beust:kobalt-line-count:0.2")
 

From 6fdb7fb3084a55771b38655af6cfee566cccfc1e Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Wed, 20 Jul 2016 23:05:47 -0800 Subject: [PATCH 7/9] Update the settings doc. --- documentation/index.html | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/documentation/index.html b/documentation/index.html index 4b349d5..a574c35 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -292,13 +292,13 @@ dependencies {

-<kobalt-settings>
-    <local-repo>/Users/beust/my-kobalt-repo</local-repo>
-    <default-repos>
+<kobaltSettings>
+    <localCache>/Users/beust/my-kobalt-repo</localCache>
+    <defaultRepos>
         <repo>http://jcenter.com</repo>
         <repo>http://example.com</repo>
-    </default-repos>
-</kobalt-settings>
+ </defaultRepos> +</kobaltSettings>

Here is a list of the parameters you can configure:

@@ -317,25 +317,30 @@ dependencies { - default-repos + defaultRepos Default repos List of repos overriding the default ones that Kobalt uses. - kobalt-compiler-version - 1.0.0 + kobaltCompilerVersion + 1.0.3 The version of the Kotlin compiler that Kobalt uses. - kobalt-compiler-repo + kobaltCompilerRepo None The Maven repository where to find the compiler. By default, the compiler is looked up in the default repos (JCenter, Maven, ...). - local-repo - ~/.kobalt/repository + localCache + ~/.kobalt/cache Where Kobalt stores all the downloaded dependencies. + + localMavenRepo + ~/.kobalt/localMavenRepo + Where Kobalt publishes artifacts when the task publishToLocalMaven is invoked. +

Templates

From 9ecccca82db7d1ec4b5ecce6a802da723a8aca84 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 21 Jul 2016 00:53:08 -0800 Subject: [PATCH 8/9] Typos. --- documentation/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/index.html b/documentation/index.html index a574c35..95d642c 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -399,8 +399,8 @@ $ ./kobaltw --pluginJarFiles kobaltBuild/libs/kobalt-line-count-0.18.jar --tasks $ ./kobaltw --plugins com.beust:kobalt-android: --listTemplates Available templates Plug-in: Kobalt - "java" Generates a simple Java project - "kotlin" Generates a simple Kotlin project + "java" Generate a simple Java project + "kotlin" Generate a simple Kotlin project "kobaltPlugin" Generate a sample Kobalt plug-in project Plug-in: Android "androidJava" Generate a simple Android Java project From 851c9235d75d809d649700f5027616cd8ef3d706 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sun, 24 Jul 2016 22:42:13 -0800 Subject: [PATCH 9/9] Document --profiling. --- documentation/index.html | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/documentation/index.html b/documentation/index.html index 95d642c..eca2ac9 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -645,6 +645,13 @@ New versions found: Specify the plug-ins to load. This is similar to specifying these plug-in id's in a build file except that no build file is needed. + + --profiling + + + Display timings for the build tasks. + + --resolve Maven id
(e.g. "com.beust:kobalt:0.228") @@ -652,20 +659,20 @@ New versions found: Display information about the given id. Display which repo this artifact can be found in and the whole graph of its dependencies. - - --tasks - Boolean - false - List the tasks available. - Note that the available tasks will vary depending on which projects are in your build file. - - - --update - Boolean - false - Update Kobalt to the latest version available. - Use this flag if Kobalt just notified you that a new version is available and you want to update. Another way of doing this is to edit kobalt/wrapper/kobalt-wrapper.properties manually. - + + --tasks + Boolean + false + List the tasks available. + Note that the available tasks will vary depending on which projects are in your build file. + + + --update + Boolean + false + Update Kobalt to the latest version available. + Use this flag if Kobalt just notified you that a new version is available and you want to update. Another way of doing this is to edit kobalt/wrapper/kobalt-wrapper.properties manually. +

Testing