From 67e633810e815601e71adb4405f6e85c1011e37c Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 12 Dec 2015 21:25:34 -0800 Subject: [PATCH] Update location of Build.kt. --- contributing/index.html | 42 ---------------------------------- documentation/index.html | 6 ++--- home/index.html | 2 +- idea-plug-in/index.html | 6 ++--- plug-in-development/index.html | 2 +- 5 files changed, 8 insertions(+), 50 deletions(-) diff --git a/contributing/index.html b/contributing/index.html index 7adc571..43523e0 100644 --- a/contributing/index.html +++ b/contributing/index.html @@ -82,48 +82,6 @@

- -

Auto complete in build files

-

- It's useful to turn on auto completion for your Build.kt file if you are adding new - elements to the DSL. You can achieve this in two steps. -

- -

Sync your build file

-

- This is achieved with the Kobalt / Sync build file menu item. On top of configuring your - IDEA project with the correct dependencies, this will also add the kobalt.jar file to your - classpath. -

-

- -

-

- -

- - -

Compile your build file

-

- Next, mark the directory that contains your build file as a "Source directory": -

-

- -

-
-

Alternate source directory for Build.kt

- The default location for Build.kt is in the root directory of your project but - you can also put it in kobalt/src/Build.kt and then mark that directory as - a source directory. -
- -

- You can now use all the IDEA features on your build file: -

-

- -

- diff --git a/documentation/index.html b/documentation/index.html index c9a9c88..3bf6d97 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -96,7 +96,7 @@ This command will do two things:

    -
  1. Create a default Build.kt file in your current directory based on what was found there. +
  2. Create a default kobalt/src/Build.kt file based on what was found there.
  3. Install the Kobalt Wrapper in your current directory (script `kobaltw`) and in the kobalt/ directory. From now on, you can just use ./kobaltw to build and you can ignore $KOBALT_HOME.
@@ -404,9 +404,9 @@ Here are the options that you can pass to ./kobaltw: --buildFile File - Build.kt + kobalt/src/Build.kt Specify a build file. - Use this option if you are trying to build a project that's not in the current directory. + Use this option if you are trying to build a project whose Build.kt is not in kobalt/src. --checkVersions diff --git a/home/index.html b/home/index.html index 1f73240..da6a8d4 100644 --- a/home/index.html +++ b/home/index.html @@ -84,7 +84,7 @@ val jcommander = javaProject { dependenciesTest { compile("org.testng:testng:6.9.5") } - +f assemble { mavenJars { } diff --git a/idea-plug-in/index.html b/idea-plug-in/index.html index 6c19fc1..153e9ba 100644 --- a/idea-plug-in/index.html +++ b/idea-plug-in/index.html @@ -94,7 +94,7 @@

Synchronization of build files

- The plug-in will find your `Build.kt` file and it will automatically update your project's libraries and + The plug-in will locate your kobalt/src/Build.kt file and automatically update your project's libraries and dependencies to reflect it. For example, suppose you have the following dependencies:

@@ -148,8 +148,8 @@ dependencies {
 
 

Auto completion of Build.kt

- The plug-in will automatically turn on auto-completion of your Build.kt - file if it's located in the kobalt/src directory. Once this is + The plug-in will automatically turn on auto-completion of your kobalt/src/Build.kt + file. Once this is enabled, you can use everything you use on Kotlin files (auto completion, jump to symbols, even refactorings).

diff --git a/plug-in-development/index.html b/plug-in-development/index.html index 997ef8e..fe18ef0 100644 --- a/plug-in-development/index.html +++ b/plug-in-development/index.html @@ -354,7 +354,7 @@ public fun myConfig(init: Info.() -> Unit) = Info().apply { init() }

 // Build.kt
-import.com.example.plugin.myConfig
+ort.com.example.plugin.myConfig
 
 myConfig {
     publish = true