Kotlin Extension for bld https://github.com/rife2/bld-kotlin
Find a file
2023-11-08 22:12:34 -08:00
.github/workflows Added tests 2023-11-04 02:00:42 -07:00
.idea Added support for Collections as arguments 2023-11-03 23:10:31 -07:00
.vscode Initial commit 2023-11-03 21:31:09 -07:00
config Minor cleanup 2023-11-03 22:08:45 -07:00
examples Added no-stdlib and -Xfriend-paths compile options 2023-11-08 22:12:34 -08:00
lib/bld Minor cleanup 2023-11-03 22:08:45 -07:00
src Added no-stdlib and -Xfriend-paths compile options 2023-11-08 22:12:34 -08:00
.gitignore Fixed dependencies for testing 2023-11-04 02:07:00 -07:00
bld Initial commit 2023-11-03 21:31:09 -07:00
bld.bat Initial commit 2023-11-03 21:31:09 -07:00
LICENSE.txt Initial commit 2023-11-03 21:31:09 -07:00
README.md Added Kotlin compile options configuration 2023-11-07 03:28:50 -08:00

Kotlin Extension for bld

License Java Kotlin bld Release Snapshot GitHub CI

To install, please refer to the extensions documentation.

Compile Kotlin Source Code

To compile the source code located in src/main/kotlin and src/test/kotlin from the current project:

@BuildCommand(summary = "Compile the Kotlin project")
public void compile() throws IOException {
    new CompileKotlinOperation()
            .fromProject(this)
            .compileOptions(new CompileKotlinOptions().verbose(true))
            .execute();
}
./bld compile

Please check the Compile Operation documentation for all available configuration options.

Generate Javadoc

To generate the Javadoc using Dokka:

@BuildCommand(summary = "Generates Javadoc for the project")
public void javadoc() throws ExitStatusException, IOException, InterruptedException {
    new DokkaOperation()
            .fromProject(this)
            .outputDir(new File(buildDirectory(), "javadoc"))
            .outputFormat(OutputFormat.JAVADOC)
            .execute();
}
./bld javadoc

Please check the Dokka Operation documentation for all available configuration options.