Registry / build-tool / kotlin-compiler-embeddable

kotlin-compiler-embeddable

JSON →
library2.4.0javamavenunverified

An embeddable version of the Kotlin compiler for programmatic compilation of Kotlin code.

<dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-compiler-embeddable</artifactId> <version>2.4.0</version> </dependency>
INSTALL
IMPORT
SIG · KOTLIN-COMPILER-EM
K
kotlin-compiler-embeddable
build-tooljavav2.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

K2JVMCompiler
org.jetbrains.kotlin.cli.jvm.K2JVMCompiler

Compile a Kotlin file programmatically.

import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler; K2JVMCompiler compiler = new K2JVMCompiler(); compiler.exec(System.out, "-cp", "path/to/classes", "source.kt");
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.4.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
kotlin-compiler-embeddable — mvn dependency:get kotlin-compiler-embeddable · libregistry