java8中用于scala开发的gradle REPL
有没有一种方法可以在gradle中使用类似于java8中用于scala开发的gradle REPL,java,scala,gradle,read-eval-print-loop,Java,Scala,Gradle,Read Eval Print Loop,有没有一种方法可以在gradle中使用类似于sbt console的REPL来改进java8,它会自动将项目的类添加到REPL的类路径中?仅适用于java9,或者认为解决方案仍然是最佳实践?以下是 我的build.gradle.kts看起来像: plugins { scala } dependencies { compile(project(":core")) compile(Conf.plugins.ammonite) } tasks{ "printClas
sbt console
的REPL来改进java8,它会自动将项目的类添加到REPL的类路径中?仅适用于java9,或者认为解决方案仍然是最佳实践?以下是
我的build.gradle.kts
看起来像:
plugins {
scala
}
dependencies {
compile(project(":core"))
compile(Conf.plugins.ammonite)
}
tasks{
"printClasspath"{
dependsOn("assemble")
doLast{
println(java.sourceSets["main"].runtimeClasspath.asPath)
}
}
}