BREAKING CHANGE: Kotlin must be installed. Location is deducted from KOTLIN_HOME, if set.
This commit is contained in:
parent
c84019de2c
commit
6fa3bdefdb
8 changed files with 190 additions and 96 deletions
20
README.md
20
README.md
|
@ -2,7 +2,7 @@
|
|||
|
||||
[](https://opensource.org/licenses/Apache-2.0)
|
||||
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
||||
[](https://kotlinlang.org)
|
||||
[](https://kotlinlang.org)
|
||||
[](https://rife2.com/bld)
|
||||
[](https://repo.rife2.com/#/releases/com/uwyn/rife2/bld-kotlin)
|
||||
[](https://repo.rife2.com/#/snapshots/com/uwyn/rife2/bld-kotlin)
|
||||
|
@ -33,6 +33,24 @@ public void compile() throws Exception {
|
|||
Please check the [Compile Operation documentation](https://rife2.github.io/bld-kotlin/rife/bld/extension/CompileKotlinOperation.html#method-summary)
|
||||
for all available configuration options.
|
||||
|
||||
## Kotlin Compiler Requirement
|
||||
|
||||
Please make sure Kotlin is installed and that the `KOTLIN_HOME` environment variable is set.
|
||||
|
||||
You can also manually configure the Kotlin home location as follows:
|
||||
|
||||
```java
|
||||
@BuildCommand(summary = "Compiles the Kotlin project")
|
||||
public void compile() throws Exception {
|
||||
new CompileKotlinOperation()
|
||||
.fromProject(this)
|
||||
.kotlinHome("path/to/kotlin")
|
||||
.execute();
|
||||
}
|
||||
```
|
||||
|
||||
While older version of Kotlin are likely working with the extension, only version 1.9 or higher are officially supported.
|
||||
|
||||
## Template Project
|
||||
|
||||
There is also a [Template Project](https://github.com/rife2/kotlin-bld-example) with support for the [Dokka](https://github.com/rife2/bld-dokka) and [Detekt](https://github.com/rife2/bld-detekt) extensions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue