Giter Site home page Giter Site logo

Comments (9)

jplaisted avatar jplaisted commented on June 3, 2024 1

You could try changing your JAVA_HOME for just that terminal that is building that project. Won't impact your entire system. Still a bit of a pain, but it works.

Add scripts in your home directory to change JAVA_HOME so you can easily switch. That's what I ended up with.

from gradle-grammar-kit-plugin.

hurricup avatar hurricup commented on June 3, 2024

Looks like you need to run gradle with Java 11.
FYI: Idea migrated to Java 11, so there is a little sense to stay on 8

from gradle-grammar-kit-plugin.

jplaisted avatar jplaisted commented on June 3, 2024

Yeah, that was it, thanks. Forced my Java version to 11 and it builds now. Thanks!

from gradle-grammar-kit-plugin.

megantracy93 avatar megantracy93 commented on June 3, 2024

I am running into the same issue. I have several other projects that rely on java 8 so I'd rather not force my java version to java 11 everywhere. As specified in the gradle docs, is there a way to override the java home for the grammarkit tasks? https://docs.gradle.org/6.7/userguide/toolchains.html#integration_with_tasks_relying_on_a_java_executable_or_java_home Or is there a possibility of releasing an updated plugin here that sets the java version to java 11?

from gradle-grammar-kit-plugin.

hurricup avatar hurricup commented on June 3, 2024

@megantracy93 you may use previous versions of plugin and/or grammar-kit with java 8 support.

from gradle-grammar-kit-plugin.

megantracy93 avatar megantracy93 commented on June 3, 2024

@hurricup I am trying to upgrade my plugin to work against IntelliJ 2020.3 which requires java 11 to work: https://jetbrains.org/intellij/sdk/docs/reference_guide/api_notable/api_notable_list_2020.html#notable-changes-in-intellij-platform-20203

from gradle-grammar-kit-plugin.

hurricup avatar hurricup commented on June 3, 2024

Sorry, I'm not quite sure I understand what is your problem.
As I understand, you don't want to change JAVA_HOME on your machine to use jdk11.
But you still can choose any sdk for your project and/or gradle in IDEA.

from gradle-grammar-kit-plugin.

megantracy93 avatar megantracy93 commented on June 3, 2024

Correct, I don't want to change my JAVA_HOME. I also would rather not have to configure it in IDEA as I prefer to run gradle commands from the terminal and I need to be able to build my plugin from a CI environment which uses a terminal as well. So, I need a way to configure the java version in the gradle configuration itself. I see the grammarkit plugin is currently configured to request java 8 - would it just be as simple as updating that to java 11 and releasing a new version with that?

from gradle-grammar-kit-plugin.

hurricup avatar hurricup commented on June 3, 2024

No, this only means that plugin may be used with java 8 or older.
Your problem it's more about how to configure gradle to use different java's to run, not about this plugin.

Probably this may help you: https://stackoverflow.com/questions/18487406/how-do-i-tell-gradle-to-use-specific-jdk-version

Or google :)

from gradle-grammar-kit-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.