Skip to content

Instantly share code, notes, and snippets.

View Tapchicoma's full-sized avatar

Yahor Berdnikau Tapchicoma

View GitHub Profile
@Tapchicoma
Tapchicoma / build.gradle.kts
Created October 2, 2017 10:17 — forked from mkobit/build.gradle.kts
Run Kotlin REPL with built source code and main classpath in Gradle
// Assuming Kotlin plugin is applied...
// Run as: ./gradlew kotlinRepl --console plain --no-daemon
val kotlinRepl by tasks.creating {
dependsOn("assemble")
doFirst {
val buildscriptClasspath = rootProject.buildscript.configurations["classpath"]
val embeddedableCompiler = buildscriptClasspath
.resolvedConfiguration