Skip to content

No Interactive Shell using Gradle 6.3 and JDK 14 #1

@alex-aeiou

Description

@alex-aeiou

Added the plugin in the following version:

id "com.github.mrsarm.jshell.plugin" version "1.0.0-RC1"

Running the command:

./gradlew --no-daemon build -x test --console plain jshell

Leads to it successfully building and starting JShell but i doesn't grant me interactive input and stops as "BUILD SUCCESSFUL" immediately after:

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.3/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :
:jshell task :classes not found, be sure to compile the project first

> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :bootJar UP-TO-DATE
> Task :jar SKIPPED
> Task :assemble UP-TO-DATE
> Task :check
> Task :build

> Task :jshell
|  Welcome to JShell -- Version 14
|  For an introduction type: /help intro

BUILD SUCCESSFUL in 11s
4 actionable tasks: 1 executed, 3 up-to-date

Some infos about my system:

➜  service java --version
openjdk 14 2020-03-17
OpenJDK Runtime Environment (build 14+36-1461)
OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
➜  service ✗ ./gradlew --version

------------------------------------------------------------
Gradle 6.3
------------------------------------------------------------

Build time:   2020-03-24 19:52:07 UTC
Revision:     bacd40b727b0130eeac8855ae3f9fd9a0b207c60

Kotlin:       1.3.70
Groovy:       2.5.10
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          14 (Oracle Corporation 14+36-1461)
OS:           Mac OS X 10.15.3 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions