From f7da7c961add9eeaafa71685e496943e847d4de1 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 30 Jan 2016 00:49:21 +0400 Subject: [PATCH 1/3] Add u2020. --- home/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/home/index.html b/home/index.html index eef955f..f7f7a94 100644 --- a/home/index.html +++ b/home/index.html @@ -172,6 +172,7 @@ Kobalt is currently in Beta but already used in several projects. Here are links
  • JCommander.
  • TestNG (this build file shows an example of adding a custom task in the build itself).
  • Klaxon
  • +
  • u2020 (Android show case application)
  • ... and of course, Kobalt itself (this build file demonstrates multi projects and project dependencies).
  • From 7d170bfb53e681d2374ce0b99c0a72458dd47947 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 2 Feb 2016 23:40:30 +0400 Subject: [PATCH 2/3] Document mixed projects. --- plug-ins/index.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/plug-ins/index.html b/plug-ins/index.html index 466b2f2..e8755bf 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -58,8 +58,7 @@ val p = javaProject(wrapper) { group = "com.beust" artifactId = name version = "0.1" -} - +}

    Both these directives create an object of type Project. @@ -85,6 +84,25 @@ A Project has two mandatory attributes: name and The dependencies for your tests +

    Mixed language projects

    +

    + A Kobalt project can have multiple languages in it (Kotlin and Java): just specify all the source + directories you need. For example, for a javaProject, add src/main/kotlin as a + source directory: +

    +
    +val p = javaProject(wrapper) {
    +    name = "kobalt"
    +    // ...
    +    sourceDirectories {
    +        path("src/main/java", "src/main/kotlin")
    +    }
    +}
    +

    Note that source files must be in their respective directory (.java in + src/main/java and .kt in src/main/kotlin). This restrictions + might be relaxed in the future. +

    +

    Tasks

    Once you have at least one project configured, the plug-in lets you invoke the following tasks: From afa2b44dcf5a0540271b43b712768746f5520b4a Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 2 Feb 2016 23:41:51 +0400 Subject: [PATCH 3/3] Remove. --- plug-ins/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plug-ins/index.html b/plug-ins/index.html index e8755bf..ba717e3 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -99,8 +99,7 @@ val p = javaProject(wrapper) { } }

    Note that source files must be in their respective directory (.java in - src/main/java and .kt in src/main/kotlin). This restrictions - might be relaxed in the future. + src/main/java and .kt in src/main/kotlin).

    Tasks