diff --git a/documentation/index.html b/documentation/index.html index 44460f9..7fba834 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -217,7 +217,7 @@ dependencies { } dependenciesTest { - compile("org.testng:testng:6.9.5") + compile("org.testng:testng:") }

@@ -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

@@ -394,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 @@ -605,7 +610,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 @@ -659,6 +664,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") @@ -666,20 +678,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

diff --git a/getting-started/index.html b/getting-started/index.html index 287705b..cdd797f 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -111,7 +111,7 @@ val jcommander = project { version = "1.54" dependenciesTest { - compile("org.testng:testng:6.9.9") + compile("org.testng:testng:") } assemble { diff --git a/home/index.html b/home/index.html index 804cf4f..c56d83c 100644 --- a/home/index.html +++ b/home/index.html @@ -95,7 +95,7 @@ val jcommander = project { version = "1.52" dependenciesTest { - compile("org.testng:testng:6.9.5") + compile("org.testng:testng:") } assemble { diff --git a/plug-ins/index.html b/plug-ins/index.html index 740a068..4676c59 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -534,6 +534,44 @@ $ ./kobaltw uploadBintray
The first parameter is the file you want to upload and the second one is the path where it will be uploaded to.
+

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 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"
+        })
+        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. +

+ + +
diff --git a/ten-minutes/index.html b/ten-minutes/index.html index f49cee0..0589c60 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
 
@@ -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")