diff --git a/getting-started/index.html b/getting-started/index.html
index 0ac6557..4387d21 100644
--- a/getting-started/index.html
+++ b/getting-started/index.html
@@ -63,8 +63,20 @@ Change to your project directory and call the kobaltw
command with
cd ~/java/project -kobaltw --init java -+kobaltw --init java +to initialize a Java project, or +
+cd ~/java/project +kobaltw --init kotlin+
+to initialize a Kotlin project. +
+java
or kotlin
as the --init
argument and refer to the mixed projects documentation for more details.
+ This command will do two things:
@@ -75,18 +87,11 @@ This command will do two things:
From now on, you can just use ./kobaltw
to build and you can ignore the kobaltw
on your path (this command is only useful for initializing projects).
-You can now attempt to build your project with Kobalt: -
--./kobaltw assemble --If your project follows a regular build structure (e.g. Maven's hierarchy), this should compile your file and create a .jar file. If not, you will have to make a few edits to your
Build.kt
.
-As of this writing, Kobalt supports Java and Kotlin projects.
-
-
+ If your project uses a standard folder structure, you can skip this section and try to build your project directly. +
The build file generated by default might need some editing before you can build your project, so take a look at it and adjust whatever is necessary (e.g. package name, version, etc...)
Here is the Build.kt
for the JCommander project:
@@ -116,15 +121,36 @@ val jcommander = project {
publish = true
}
}
+
+ You can now attempt to build your project with Kobalt: +
++./kobaltw assemble+
+If you are planning to use IDEA to work on your project, you can ask Kobalt to generate all the IDEA files necessary to import your project: +
++./kobaltw --init idea +-
Build.kt
file for this command to work.
++ This will generate several files depending on the content of your build file. You can then launch IDEA and open this project directly. +
+
If you're using Intellij IDEA, make sure you've installed the Kobalt plugin and then go to Kobalt -> Sync Build File
. Once the build file is synchronized, the errors should disappear
and you can now use all the regular functions of IDEA on Build.kt
just like any other Kotlin
files (auto completion, jump to symbol, etc...).
From this point, you can either learn how to install the Kobalt IDEA plug-in or read Kobalt's documentation.