diff --git a/home/index.html b/home/index.html index 0f06314..ffbfb99 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).
  • diff --git a/plug-ins/index.html b/plug-ins/index.html index 466b2f2..ba717e3 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,24 @@ 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). +

    +

    Tasks

    Once you have at least one project configured, the plug-in lets you invoke the following tasks: