Kotlin Extension for bld https://github.com/rife2/bld-kotlin
Find a file
2024-05-28 22:57:56 -07:00
.github/workflows Bumped workflows actions to latest versions 2024-05-07 11:14:55 -07:00
.idea Bumped bld to version 1.9.1 2024-05-07 11:16:24 -07:00
.vscode Bumped bld to version 1.9.1 2024-05-07 11:16:24 -07:00
config Bumped PMD extension to 0.9.8 (PMD 7.0.0) 2024-03-22 04:16:54 -07:00
examples Version 0.9.8 2024-05-26 21:18:29 -07:00
lib/bld Execute cligargs script prior to to running tests 2024-05-28 13:26:34 -07:00
scripts Ensured all missing Kolin compiler arguments are handled 2024-05-28 22:57:56 -07:00
src Ensured all missing Kolin compiler arguments are handled 2024-05-28 22:57:56 -07: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 Version 0.9.8 2024-05-26 21:18:29 -07:00

Kotlin Extension for bld

License Java Kotlin bld Release Snapshot GitHub CI

To install, please refer to the extensions and support 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 = "Compiles the Kotlin project")
public void compile() throws IOException {
    new CompileKotlinOperation()
            .fromProject(this)
            .execute();
}
./bld compile

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

Generate Javadoc

To generate the Javadoc using Dokka:

@Override
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.

Template Project

There is also a Template Project with support for Dokka and the Detekt extensions.